]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zipstrm.cpp
return NULL from GetVoidPtr() for NULL variants instead of asserting (closes #9873)
[wxWidgets.git] / src / common / zipstrm.cpp
index 6a6ea742c07f3897a111b5ad2e72afbc6ad459de..0bb02d568ddbae1ff00b51664bbcbb5960857cd9 100644 (file)
@@ -140,7 +140,7 @@ static wxFileOffset QuietSeek(wxInputStream& stream, wxFileOffset pos)
 /////////////////////////////////////////////////////////////////////////////
 // Class factory
 
-wxZipClassFactory g_wxZipClassFactory;
+static wxZipClassFactory g_wxZipClassFactory;
 
 wxZipClassFactory::wxZipClassFactory()
 {
@@ -2318,7 +2318,7 @@ bool wxZipOutputStream::Close()
 
     m_lasterror = m_parent_o_stream->GetLastError();
     m_endrecWritten = true;
-    
+
     if (!wxFilterOutputStream::Close() || !IsOk())
         return false;
     m_lasterror = wxSTREAM_EOF;