]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ffile.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / ffile.cpp
index 5957e34df2b055d598aca229f272a260e1692c87..ae196692041bcc9726fc2c5f530a178e5e394841 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        ffile.cpp
+// Name:        src/common/ffile.cpp
 // Purpose:     wxFFile encapsulates "FILE *" IO stream
 // Author:      Vadim Zeitlin
 // Modified by:
@@ -117,7 +117,9 @@ bool wxFFile::ReadAll(wxString *str, const wxMBConv& conv)
     }
 
     buf.data()[length] = 0;
-    *str = wxString(buf, conv);
+
+    wxString strTmp(buf, conv);
+    str->swap(strTmp);
 
     return true;
 }