diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index b57186d49367..ebf31acc4f9a 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -759,7 +760,7 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const ImplPtr pImpl; #if OSL_DEBUG_LEVEL > 0 - static size_t nCalls = 0; + static std::atomic_int nCalls = 0; ++nCalls; SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: " << nCalls << " calls"); #endif