X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/608a34bf5b95059789cda694a9b4257e282648e7..f5bed7a885024108682c32c74567cdf7bf2ed13b:/src/common/file.cpp?ds=sidebyside diff --git a/src/common/file.cpp b/src/common/file.cpp index ae71d0ef12..b44087c38b 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -14,10 +14,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "file.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -217,11 +213,9 @@ bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode) wxLogSysError(_("can't create file '%s'"), szFileName); return false; } - else - { - Attach(fd); - return true; - } + + Attach(fd); + return true; } // open the file @@ -271,10 +265,9 @@ bool wxFile::Open(const wxChar *szFileName, OpenMode mode, int accessMode) wxLogSysError(_("can't open file '%s'"), szFileName); return false; } - else { - Attach(fd); - return true; - } + + Attach(fd); + return true; } // close