]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed VC++ warning
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Dec 2002 12:18:49 +0000 (12:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Dec 2002 12:18:49 +0000 (12:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index a9201c2aaf17c4d34a59b477096869ce493243d6..5a357beca36fd4ae18207332cdb2610133f883eb 100644 (file)
@@ -1005,13 +1005,11 @@ int wxImage::GetImageCount( const wxString &name, long type )
 {
 #if wxUSE_STREAMS
   wxFileInputStream stream(name);
-  if (!stream.Ok())
-      return 0;
-  else
+  if (stream.Ok())
       return GetImageCount(stream, type);
-#else
-  return 0;
 #endif
+
+  return 0;
 }
 
 #if wxUSE_STREAMS