]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
Don't use wxDC in header
[wxWidgets.git] / src / common / string.cpp
index 96c9c526f4880c67ff1bee264db2a4650037f182..54a7281a5899126b80841d69ac8d3680a3c3aed7 100644 (file)
@@ -2012,11 +2012,6 @@ static int DoStringPrintfV(wxString& str,
         if ( !buf )
         {
             // out of memory
-
-            // in UTF-8 build, leaving uninitialized junk in the buffer
-            // could result in invalid non-empty UTF-8 string, so just
-            // reset the string to empty on failure:
-            buf[0] = '\0';
             return -1;
         }