]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
remove declaration for ctor which is never defined
[wxWidgets.git] / src / common / string.cpp
index 827099f0a611bd82f7329006aeca04923e3d8ea8..82acf49d8640d430495f5ecf29f6dd435e771f67 100644 (file)
@@ -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