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

List:       kde-commits
Subject:    KDE/kdepim/kontact/plugins/kmail
From:       Laurent Montel <montel () kde ! org>
Date:       2010-07-26 12:14:59
Message-ID: 20100726121459.967FFAC883 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1154865 by mlaurent:

Minor optimization


 M  +1 -1      kmail_plugin.cpp  
 M  +3 -3      summarywidget.cpp  


--- trunk/KDE/kdepim/kontact/plugins/kmail/kmail_plugin.cpp #1154864:1154865
@@ -168,7 +168,7 @@
 
 QString KMailPlugin::tipFile() const
 {
-  QString file = KStandardDirs::locate( "data", "kmail/tips" );
+  const QString file = KStandardDirs::locate( "data", "kmail/tips" );
   return file;
 }
 
--- trunk/KDE/kdepim/kontact/plugins/kmail/summarywidget.cpp #1154864:1154865
@@ -208,7 +208,7 @@
   mModelState->restoreConfig( config );
   int counter = 0;
   kDebug() << "Iterating over" << mModel->rowCount() << "collections.";
-  bool showFolderPaths = config.readEntry( "showFolderPaths", false );
+  const bool showFolderPaths = config.readEntry( "showFolderPaths", false );
   displayModel( QModelIndex(), counter, showFolderPaths, QStringList() );
 
   if ( counter == 0 ) {
@@ -218,8 +218,8 @@
     mLabels.append( label );
   }
 
-  QList<QLabel*>::iterator lit;
-  for ( lit = mLabels.begin(); lit != mLabels.end(); ++lit ) {
+  QList<QLabel*>::const_iterator lit;
+  for ( lit = mLabels.constBegin(); lit != mLabels.constEnd(); ++lit ) {
     (*lit)->show();
   }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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