diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 09:15:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 15:23:39 +0100 |
commit | a907082a4f9e0d3b2907bf6a2335481f58cbaaeb (patch) | |
tree | d7310dd31344110ce5ff7c17f14ad32acb3db356 /unotools | |
parent | 112b79c4b3a393408b33c6390a77778e8ae05656 (diff) |
dump offending config entry names
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index c07a81c7b99a..6704046fad54 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -47,6 +47,8 @@ #include <list> +#include <stdio.h> + //----------------------------------------------------------------------------- using namespace utl; @@ -120,10 +122,7 @@ ConfigManager::ConfigManager(Reference< XMultiServiceFactory > xConfigProv) : ConfigManager::~ConfigManager() { //check list content -> should be empty! -#if OSL_DEBUG_LEVEL > 1 - // I think this is a pointless assertion, the code seems to cope - // fine with it being empty, no need to crash in a dbglevel=1 - // build. +#if OSL_DEBUG_LEVEL > 0 OSL_ENSURE(pMgrImpl->aItemList.empty(), "some ConfigItems are still alive"); #endif if(!pMgrImpl->aItemList.empty()) @@ -132,6 +131,9 @@ ConfigManager::~ConfigManager() for(aListIter = pMgrImpl->aItemList.begin(); aListIter != pMgrImpl->aItemList.end(); ++aListIter) { ConfigItemListEntry_Impl& rEntry = *aListIter; +#if OSL_DEBUG_LEVEL > 0 + fprintf(stderr, "Dangling config item of %s\n", rtl::OUStringToOString(rEntry.pConfigItem->GetSubTreeName(), RTL_TEXTENCODING_UTF8).getStr()); +#endif rEntry.pConfigItem->ReleaseConfigMgr(); } pMgrImpl->aItemList.erase(pMgrImpl->aItemList.begin(), pMgrImpl->aItemList.end()); |