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)
void FilterCache::load(EFillState eRequired,
#if OSL_DEBUG_LEVEL > 1
sal_Bool bByThread
#else
sal_Bool
#endif
)
throw(css::uno::Exception)
{
......@@ -178,12 +174,10 @@ void FilterCache::load(EFillState eRequired,
if ((m_eFillState & eRequired) == eRequired)
return;
#if OSL_DEBUG_LEVEL > 1
if (!bByThread && ((eRequired & E_CONTAINS_ALL) == E_CONTAINS_ALL))
{
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!");
}
#endif
SAL_WARN_IF(
!bByThread && ((eRequired & E_CONTAINS_ALL) == E_CONTAINS_ALL),
"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!");
// 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