X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23a54e14a71e9184c3c33c2ba39b10ee1dd029b6..014b0d064e59429b7afe4466fa4f0a351d012fdc:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index fcfe8743a0..61c7923fa1 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -282,10 +282,10 @@ bool wxDocument::OnSaveDocument(const wxString& file) msgTitle = wxString(_("File error")); #if wxUSE_STD_IOSTREAM - ofstream store(FNSTRINGCAST file.fn_str()); + ofstream store(wxString(file.fn_str())); if (store.fail() || store.bad()) #else - wxFileOutputStream store(FNSTRINGCAST file.fn_str()); + wxFileOutputStream store(wxString(file.fn_str())); if (store.LastError() != 0) #endif { @@ -318,10 +318,10 @@ bool wxDocument::OnOpenDocument(const wxString& file) msgTitle = wxString(_("File error")); #if wxUSE_STD_IOSTREAM - ifstream store(FNSTRINGCAST file.fn_str()); + ifstream store(wxString(file.fn_str())); if (store.fail() || store.bad()) #else - wxFileInputStream store(FNSTRINGCAST file.fn_str()); + wxFileInputStream store(wxString(file.fn_str())); if (store.LastError() != 0) #endif {