X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/886dd7d28e50c003cc88b81b968d487a3c17b0d7..9ed8b5a7b2e41ecb07d2dab32bac32eb7b771fd3:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 8da6e31ffa..588aedd24a 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -14,10 +14,6 @@ #ifndef _WX_TEXTFILE_H #define _WX_TEXTFILE_H -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "textfile.h" -#endif - #include "wx/defs.h" #include "wx/textbuf.h" @@ -30,7 +26,7 @@ // wxTextFile // ---------------------------------------------------------------------------- -class WXDLLEXPORT_BASE wxTextFile : public wxTextBuffer +class WXDLLIMPEXP_BASE wxTextFile : public wxTextBuffer { public: // constructors @@ -43,11 +39,14 @@ protected: virtual bool OnOpen(const wxString &strBufferName, wxTextBufferOpenMode OpenMode); virtual bool OnClose(); - virtual bool OnRead(wxMBConv& conv); - virtual bool OnWrite(wxTextFileType typeNew, wxMBConv& conv); + virtual bool OnRead(const wxMBConv& conv); + virtual bool OnWrite(wxTextFileType typeNew, const wxMBConv& conv); private: + wxFile m_file; + + DECLARE_NO_COPY_CLASS(wxTextFile) }; #else // !wxUSE_TEXTFILE