Kaydet (Commit) 570a719a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Simplify SAL_WARN

Change-Id: I76c03d5e846fae6cba87be522a10d20e45528e4c
üst 44202fed
...@@ -162,11 +162,7 @@ void FilterCache::takeOver(const FilterCache& rClone) ...@@ -162,11 +162,7 @@ void FilterCache::takeOver(const FilterCache& rClone)
void FilterCache::load(EFillState eRequired, void FilterCache::load(EFillState eRequired,
#if OSL_DEBUG_LEVEL > 1
sal_Bool bByThread sal_Bool bByThread
#else
sal_Bool
#endif
) )
throw(css::uno::Exception) throw(css::uno::Exception)
{ {
...@@ -178,12 +174,10 @@ void FilterCache::load(EFillState eRequired, ...@@ -178,12 +174,10 @@ void FilterCache::load(EFillState eRequired,
if ((m_eFillState & eRequired) == eRequired) if ((m_eFillState & eRequired) == eRequired)
return; return;
#if OSL_DEBUG_LEVEL > 1 SAL_WARN_IF(
if (!bByThread && ((eRequired & E_CONTAINS_ALL) == E_CONTAINS_ALL)) !bByThread && ((eRequired & E_CONTAINS_ALL) == E_CONTAINS_ALL),
{ "filter.config",
SAL_WARN( "filter.config", "Who disturb our \"fill cache on demand\" feature and force loading of ALL data during office startup? Please optimize your code, so a full filled filter cache is not really needed here!"); "Who disturb our \"fill cache on demand\" feature and force loading of ALL data during office startup? Please optimize your code, so a full filled filter cache is not really needed here!");
}
#endif
// Otherwise load the missing items. // Otherwise load the missing items.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment