]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed unreachable code warnings (occurred in MSVC6+Release mode)
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 20 Dec 2005 14:25:36 +0000 (14:25 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 20 Dec 2005 14:25:36 +0000 (14:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/file.cpp

index a6aa633b5aced39764802518ad4ff4dd7d8214ac..b44087c38b4725a910b5013b6a36c6783a882cd8 100644 (file)
@@ -213,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
@@ -267,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