/////////////////////////////////////////////////////////////////////////////
-// Name: ffile.cpp
+// Name: src/common/ffile.cpp
// Purpose: wxFFile encapsulates "FILE *" IO stream
// Author: Vadim Zeitlin
// Modified by:
}
buf.data()[length] = 0;
- *str = wxString(buf, conv);
+
+ wxString strTmp(buf, conv);
+ str->swap(strTmp);
return true;
}