From 5edfb31e959f7a7887d2647ab36f198f2333c491 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 19 Jul 2000 08:12:30 +0000 Subject: [PATCH] wxFopen(fname.fn_str(),...) does not make sense and does not compile in Unicode mode. Just use wxFopen(fname,...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index b70b21bd34..6f8a2ce363 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2253,7 +2253,7 @@ bool wxTransferFileToStream(const wxString& filename, wxOutputStream& stream) FILE *fd1; int ch; - if ((fd1 = wxFopen (filename.fn_str(), wxT("rb"))) == NULL) + if ((fd1 = wxFopen (filename, wxT("rb"))) == NULL) return FALSE; while ((ch = getc (fd1)) != EOF) @@ -2268,7 +2268,7 @@ bool wxTransferStreamToFile(wxInputStream& stream, const wxString& filename) FILE *fd1; char ch; - if ((fd1 = wxFopen (filename.fn_str(), wxT("wb"))) == NULL) + if ((fd1 = wxFopen (filename, wxT("wb"))) == NULL) { return FALSE; }