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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/oscar/icq/ui
From:       Nick Shaforostoff <shafff () ukr ! net>
Date:       2010-06-15 13:52:57
Message-ID: 20100615135257.D60C6AC8D3 () svn ! kde ! org
[Download RAW message or body]

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: metz@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());
[prev in list] [next in list] [prev in thread] [next in thread] 

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