]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zstream.cpp
Make the main message of wxGenericMessageDialog stand out.
[wxWidgets.git] / src / common / zstream.cpp
index cb2ba6c4fabe44d6fa8379daab9ff68839943dad..c293548a040e3538136259e35b0a4e2ace2745d3 100644 (file)
@@ -88,13 +88,13 @@ wxGzipClassFactory::wxGzipClassFactory()
 const wxChar * const *
 wxGzipClassFactory::GetProtocols(wxStreamProtocolType type) const
 {
 const wxChar * const *
 wxGzipClassFactory::GetProtocols(wxStreamProtocolType type) const
 {
-    static const wxChar *protos[] =     
+    static const wxChar *protos[] =
         { wxT("gzip"), NULL };
         { wxT("gzip"), NULL };
-    static const wxChar *mimes[] =     
+    static const wxChar *mimes[] =
         { wxT("application/gzip"), wxT("application/x-gzip"), NULL };
         { wxT("application/gzip"), wxT("application/x-gzip"), NULL };
-    static const wxChar *encs[] = 
+    static const wxChar *encs[] =
         { wxT("gzip"), NULL };
         { wxT("gzip"), NULL };
-    static const wxChar *exts[] =    
+    static const wxChar *exts[] =
         { wxT(".gz"), wxT(".gzip"), NULL };
     static const wxChar *empty[] =
         { NULL };
         { wxT(".gz"), wxT(".gzip"), NULL };
     static const wxChar *empty[] =
         { NULL };
@@ -335,11 +335,8 @@ bool wxZlibOutputStream::Close()
  {
   DoFlush(true);
    deflateEnd(m_deflate);
  {
   DoFlush(true);
    deflateEnd(m_deflate);
-   delete m_deflate;
-
-  m_deflate = NULL;
-   delete[] m_z_buffer;
-  m_z_buffer = NULL;
+   wxDELETE(m_deflate);
+   wxDELETEA(m_z_buffer);
 
   return wxFilterOutputStream::Close() && IsOk();
  }
 
   return wxFilterOutputStream::Close() && IsOk();
  }