X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ae00f5b5756cb67631400628acc94dd23fe03d7..fa3b08caf17a6310540d623b6ce508c201efb9a5:/src/common/textbuf.cpp?ds=inline diff --git a/src/common/textbuf.cpp b/src/common/textbuf.cpp index 1891af5b1b..2aa823d9b3 100644 --- a/src/common/textbuf.cpp +++ b/src/common/textbuf.cpp @@ -132,6 +132,8 @@ wxString wxTextBuffer::Translate(const wxString& text, wxTextFileType type) #if wxUSE_TEXTBUFFER +wxString wxTextBuffer::ms_eof; + // ---------------------------------------------------------------------------- // ctors & dtor // ---------------------------------------------------------------------------- @@ -179,14 +181,14 @@ bool wxTextBuffer::Create() return true; } -bool wxTextBuffer::Open(const wxString& strBufferName, wxMBConv& conv) +bool wxTextBuffer::Open(const wxString& strBufferName, const wxMBConv& conv) { m_strBufferName = strBufferName; return Open(conv); } -bool wxTextBuffer::Open(wxMBConv& conv) +bool wxTextBuffer::Open(const wxMBConv& conv) { // buffer name must be either given in ctor or in Open(const wxString&) wxASSERT( !m_strBufferName.empty() ); @@ -274,7 +276,7 @@ bool wxTextBuffer::Close() return true; } -bool wxTextBuffer::Write(wxTextFileType typeNew, wxMBConv& conv) +bool wxTextBuffer::Write(wxTextFileType typeNew, const wxMBConv& conv) { return OnWrite(typeNew, conv); }