From f68c6b523c1117c90c1cf690745c807bc024789d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Feb 2003 14:17:41 +0000 Subject: [PATCH] Unicode compilation fixes after wxFFile change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/textcmn.cpp | 2 +- src/common/wfstream.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index c7bb1f7f46..437334ff5d 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -173,7 +173,7 @@ bool wxTextCtrlBase::SaveFile(const wxString& filename) } #if wxUSE_FFILE - wxFFile file(filename, "w"); + wxFFile file(filename, _T("w")); if ( file.IsOpened() && file.Write(GetValue()) ) { // it's not modified any longer diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index d460dd61ab..0a115182aa 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -198,7 +198,7 @@ wxFileStream::wxFileStream(const wxString& fileName) wxFFileInputStream::wxFFileInputStream(const wxString& fileName) : wxInputStream() { - m_file = new wxFFile(fileName, "rb"); + m_file = new wxFFile(fileName, _T("rb")); m_file_destroy = TRUE; } @@ -265,7 +265,7 @@ off_t wxFFileInputStream::OnSysTell() const wxFFileOutputStream::wxFFileOutputStream(const wxString& fileName) { - m_file = new wxFFile(fileName, "w+b"); + m_file = new wxFFile(fileName, _T("w+b")); m_file_destroy = TRUE; if (!m_file->IsOpened()) -- 2.45.2