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

List:       kde-commits
Subject:    KDE/kdepim/libkdepim (silent)
From:       Sergio Luis Martins <iamsergio () gmail ! com>
Date:       2010-12-13 21:42:49
Message-ID: 20101213214249.3BE87AC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1206212 by smartins:

SVN_SILENT: make variables const

 M  +3 -3      kcheckcombobox.cpp  


--- trunk/KDE/kdepim/libkdepim/kcheckcombobox.cpp #1206211:1206212
@@ -205,12 +205,12 @@
 void KCheckComboBox::setCheckedItems( const QStringList &items )
 {
   for ( int r = 0; r < model()->rowCount( rootModelIndex() ); ++r ) {
-    QModelIndex indx = model()->index( r, modelColumn(), rootModelIndex() );
+    const QModelIndex indx = model()->index( r, modelColumn(), rootModelIndex() );
 
     // DisplayRole has " SubCategory"
     // UserRole has "Category:SubCategory"
-    QString text = indx.data( Qt::UserRole ).toString();
-    bool found = items.contains( text );
+    const QString text = indx.data( Qt::UserRole ).toString();
+    const bool found = items.contains( text );
     model()->setData( indx, found ? Qt::Checked : Qt::Unchecked, Qt::CheckStateRole );
   }
   d->updateCheckedItems();
[prev in list] [next in list] [prev in thread] [next in thread] 

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