]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode compilation fixes after wxFFile change
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Feb 2003 14:17:41 +0000 (14:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Feb 2003 14:17:41 +0000 (14:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textcmn.cpp
src/common/wfstream.cpp

index c7bb1f7f46205c6996b57c04693e9a66de67bc54..437334ff5d5db75b8f7d055e18d4b39d7cf3b975 100644 (file)
@@ -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
index d460dd61abeb5bd2ecf2f97230d7dda949b6dca5..0a115182aad6be6b089c05af4ce3c92275d54f32 100644 (file)
@@ -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())