X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6ac8d7582a22fef158f0a1d83f0183f27e188bf..f54e5c1a4f6952c62ed4480f7d26feddc20f98ba:/include/wx/wfstream.h?ds=sidebyside diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index a0061f52ae..da1e7c2d87 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -93,8 +93,8 @@ public: virtual ~wxTempFileOutputStream(); bool Close() { return Commit(); } - virtual bool Commit() { return m_file->Commit(); } - virtual void Discard() { m_file->Discard(); } + WXDLLIMPEXP_INLINE_BASE virtual bool Commit() { return m_file->Commit(); } + WXDLLIMPEXP_INLINE_BASE virtual void Discard() { m_file->Discard(); } wxFileOffset GetLength() const { return m_file->Length(); } bool IsSeekable() const { return true; } @@ -161,7 +161,7 @@ protected: class WXDLLIMPEXP_BASE wxFFileOutputStream : public wxOutputStream { public: - wxFFileOutputStream(const wxString& fileName, const wxString& mode = "w+b"); + wxFFileOutputStream(const wxString& fileName, const wxString& mode = "wb"); wxFFileOutputStream(wxFFile& file); wxFFileOutputStream(FILE *file); virtual ~wxFFileOutputStream(); @@ -171,7 +171,7 @@ public: wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - virtual bool IsOk() const ; + virtual bool IsOk() const; bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } protected: @@ -192,7 +192,8 @@ class WXDLLIMPEXP_BASE wxFFileStream : public wxFFileInputStream, public wxFFileOutputStream { public: - wxFFileStream(const wxString& fileName); + wxFFileStream(const wxString& fileName, const wxString& mode = "w+b"); + virtual bool IsOk() const; private: DECLARE_NO_COPY_CLASS(wxFFileStream)