[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/lib/store
From:       Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date:       2005-03-30 20:36:13
Message-ID: 20050330203613.AFC70633 () office ! kde ! org
[Download RAW message or body]

CVS commit by raphael: 

Remove the out-of-memory checks as advised by David Faure.


  M +3 -12     koZipStore.cc   1.20


--- koffice/lib/store/koZipStore.cc  #1.19:1.20
@@ -35,7 +35,4 @@ KoZipStore::KoZipStore( const QString & 
 
     m_pZip = new KZip( _filename );
-    if (!m_pZip)
-      m_bGood = false;
-    else
       m_bGood = init( _mode, appIdentification ); // open the zip file and init some vars
 }
@@ -44,7 +41,4 @@ KoZipStore::KoZipStore( QIODevice *dev, 
 {
     m_pZip = new KZip( dev );
-    if (!m_pZip)
-      m_bGood = false;
-    else
       m_bGood = init( mode, appIdentification );
 }
@@ -73,7 +67,4 @@ KoZipStore::KoZipStore( QWidget* window,
 
     m_pZip = new KZip( m_localFileName );
-    if (!m_pZip)
-      m_bGood = false;
-    else
       m_bGood = init( _mode, appIdentification ); // open the zip file and init some vars
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic