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

Make warning more useful

Change-Id: I58226f74e644e2aa65dddf5bcb0832dc67c8a6e3
üst b07438bd
...@@ -164,16 +164,15 @@ void FilterCache::load(EFillState eRequired, ...@@ -164,16 +164,15 @@ void FilterCache::load(EFillState eRequired,
// SAFE -> ---------------------------------- // SAFE -> ----------------------------------
::osl::ResettableMutexGuard aLock(m_aLock); ::osl::ResettableMutexGuard aLock(m_aLock);
SAL_WARN_IF(
bByThread && (eRequired & ~m_eFillState) == 0, "filter.config",
"useless LateInitThread");
// check if required fill state is already reached ... // check if required fill state is already reached ...
// There is nothing to do then. // There is nothing to do then.
if ((m_eFillState & eRequired) == eRequired) if ((m_eFillState & eRequired) == eRequired)
return; return;
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. // 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