SVN commit 1138264 by shaforo:

remove redundant checks for NULL
see:
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.6

CCMAIL: m...@gehn.net
CCMAIL: kopete-devel@kde.org



 M  +0 -8      icqeditaccountwidget.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp 
#1138263:1138264
@@ -201,15 +201,9 @@
 
 ICQEditAccountWidget::~ICQEditAccountWidget()
 {
-       if ( m_visibleEngine )
                delete m_visibleEngine;
-       
-       if ( m_invisibleEngine )
                delete m_invisibleEngine;
-       
-       if ( m_ignoreEngine )
                delete m_ignoreEngine;
-       
        delete mAccountSettings;
 }
 
@@ -222,8 +216,6 @@
        {
                kDebug(14153) << "Creating a new account";
                mAccount = new ICQAccount(mProtocol, 
mAccountSettings->edtAccountId->text());
-               if(!mAccount)
-                       return NULL;
        }
 
        mAccountSettings->mPasswordWidget->save(&mAccount->password());
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to