X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/588066b7a39629e44bb39f1ab436b80f38c13f33..e0f6b731a80035dab1c2d1224f8a2dea0c9de947:/include/wx/wfstream.h diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index 514d795fff..b26ec29f5b 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -67,6 +67,7 @@ class WXDLLIMPEXP_BASE wxFileOutputStream: public wxOutputStream { // { return wxOutputStream::Write(buffer, size); } void Sync(); + bool Close() { return m_file_destroy ? m_file->Close() : true; } wxFileOffset GetLength() const; bool Ok() const { return m_file->IsOpened(); } @@ -136,6 +137,7 @@ class WXDLLIMPEXP_BASE wxFFileOutputStream: public wxOutputStream { // { return wxOutputStream::Write(buffer, size); } void Sync(); + bool Close() { return m_file_destroy ? m_file->Close() : true; } wxFileOffset GetLength() const; bool Ok() const { return m_file->IsOpened(); }