From: Vadim Zeitlin Date: Sat, 14 Dec 2002 12:18:49 +0000 (+0000) Subject: fixed VC++ warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2c0a4e08a3d1f54708f87b3c33142c030b2ef781 fixed VC++ warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/image.cpp b/src/common/image.cpp index a9201c2aaf..5a357beca3 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -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