diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-21 12:41:49 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-21 15:24:43 +0200 |
commit | 931e40703de0eec84ab53ea7450f937769cbc117 (patch) | |
tree | 7bb8d870d57e9b600f1317a227deb8aedd797d1b /i18nlangtag/source/languagetag/languagetag.cxx | |
parent | cf417c2cd421d21ccc780ea2cfde9c9339f6a878 (diff) |
added registerImpl() debug counter
Change-Id: I84a79cbbbe06bdf1ae9e77d9cb5d429c6750fe21
Diffstat (limited to 'i18nlangtag/source/languagetag/languagetag.cxx')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 552169700d40..4a3ba4dbfaab 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -665,6 +665,12 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const // methods as they may create temporary LanguageTag instances. Only // LanguageTagImpl::convertToBcp47(Locale) is ok. +#if OSL_DEBUG_LEVEL > 0 + static size_t nAccesses = 0; + ++nAccesses; + SAL_INFO( "i18nlangtag", "LanguageTagImpl::registerImpl: " << nAccesses << " calls"); +#endif + ImplPtr pImpl; // Do not register unresolved system locale, also force LangID if system. |