X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad8ae78878ee48f0c4eb2deb0995ab07a1d23f72..ef6ece2352e739f843d9fc08d96d46b6467b83d6:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 827099f0a6..82acf49d86 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -76,9 +76,6 @@ static wxStrCacheInitializer gs_stringCacheInit; // not my 6.4.98 version under amd64, so provide this debugging helper to do it #ifdef __WXDEBUG__ -namespace -{ - struct wxStrCacheDumper { static void ShowAll() @@ -100,8 +97,6 @@ struct wxStrCacheDumper } }; -} // anonymous namespace - void wxDumpStrCache() { wxStrCacheDumper::ShowAll(); } #endif // __WXDEBUG__ @@ -110,12 +105,9 @@ void wxDumpStrCache() { wxStrCacheDumper::ShowAll(); } wxString::CacheStats wxString::ms_cacheStats; -namespace +struct wxStrCacheStatsDumper { - -struct ShowCacheStats -{ - ~ShowCacheStats() + ~wxStrCacheStatsDumper() { const wxString::CacheStats& stats = wxString::ms_cacheStats; @@ -140,9 +132,9 @@ struct ShowCacheStats stats.lentot, 100.*float(stats.lenhits)/stats.lentot); } } -} s_showCacheStats; +}; -} // anonymous namespace +static wxStrCacheStatsDumper s_showCacheStats; #endif // wxPROFILE_STRING_CACHE