]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagbmp.cpp
code clean up, avoid duplicating the same code in font.cpp and fontutil.cpp
[wxWidgets.git] / src / common / imagbmp.cpp
index 2142d1e59e54cc0858f9abde6d95dfdc97e2938a..2b77f5aa939caf84b5159abd4a153dc8b9b86df1 100644 (file)
@@ -195,12 +195,17 @@ bool wxICOHandler::SaveFile(wxImage *image,
             return FALSE;
         }
         wxUint32 m_Size = cStream.GetSize();
+
+        // wxCountingOutputStream::Ok() always returns TRUE for now and this
+        // "if" provokes VC++ warnings in optimized build
+#if 0
         if (!cStream.Ok())
         {
             if (verbose)
                 wxLogError( _("ICO: Error calculating size of DIB .") );
             return FALSE;
         }
+#endif // 0
 
         m_offset = m_offset + sizeof(ICONDIRENTRY) ;