summaryrefslogtreecommitdiff
path: root/filter/source/config
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-05 22:07:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-05 22:16:59 +0200
commit416367380cbb0137f2463edc2773859a9d65a57b (patch)
treec8c2f2c02143e63b71be7c9f583fec1e0130ab12 /filter/source/config
parentb07438bda1f48465dca1df08af836106859040d5 (diff)
Make warning more useful
Change-Id: I58226f74e644e2aa65dddf5bcb0832dc67c8a6e3
Diffstat (limited to 'filter/source/config')
-rw-r--r--filter/source/config/cache/filtercache.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index ad250376cb5e..92fced420c29 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -164,16 +164,15 @@ void FilterCache::load(EFillState eRequired,
// SAFE -> ----------------------------------
::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 ...
// There is nothing to do then.
if ((m_eFillState & eRequired) == eRequired)
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.