From b341b4dad3f8d6b844a8dad26b2f06b2e4ae36ec Mon Sep 17 00:00:00 2001 From: Bo Thorsen Date: Wed, 30 Jun 2004 11:28:11 +0000 Subject: [PATCH] Less dense but more readable code. Only cosmetic svn path=/branches/proko2/kdepim/; revision=324870 --- kmailicalifaceimpl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kmailicalifaceimpl.cpp b/kmailicalifaceimpl.cpp index 2fc44c638..ee0dc4619 100644 --- a/kmailicalifaceimpl.cpp +++ b/kmailicalifaceimpl.cpp @@ -633,8 +633,10 @@ Q_UINT32 KMailICalIfaceImpl::update( const QString& resource, KMFolder* f = findResourceFolder( resource ); kdDebug(5006) << "Updating in folder " << f << endl; if( f && storageFormat( f ) == StorageXML ){ - KMMessage* msg; - if( sernum != 0 && ( msg = findMessageBySerNum( sernum, f ) ) ) { + KMMessage* msg = 0; + if ( sernum != 0 ) + msg = findMessageBySerNum( sernum, f ); + if ( msg ) { // Message found - update it: // Delete some attachments according to list