From cf41e1a4d57f8a332f2f1c6660a18a3c2eb144ba Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Feb 2003 02:40:17 +0000 Subject: [PATCH] (blind) fix for compilation in standard iostreams + Unicode mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 84acf51..cb9efb8 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -298,10 +298,10 @@ bool wxDocument::OnSaveDocument(const wxString& file) msgTitle = wxString(_("File error")); #if wxUSE_STD_IOSTREAM - wxSTD ofstream store(wxString(file.fn_str()).mb_str()); // ????? + wxSTD ofstream store(file.mb_str()); if (store.fail() || store.bad()) #else - wxFileOutputStream store( file ); + wxFileOutputStream store(file); if (store.GetLastError() != wxSTREAM_NO_ERROR) #endif { @@ -339,10 +339,10 @@ bool wxDocument::OnOpenDocument(const wxString& file) msgTitle = wxString(_("File error")); #if wxUSE_STD_IOSTREAM - wxSTD ifstream store(wxString(file.fn_str()).mb_str()); // ???? + wxSTD ifstream store(file.mb_str()); if (store.fail() || store.bad()) #else - wxFileInputStream store( file ); + wxFileInputStream store(file); if (store.GetLastError() != wxSTREAM_NO_ERROR) #endif { -- 2.7.4