From 2c0a4e08a3d1f54708f87b3c33142c030b2ef781 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Dec 2002 12:18:49 +0000 Subject: [PATCH] fixed VC++ warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/image.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.50.0