[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdesdk/kbabel/catalogmanager (silent)
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2005-09-02 15:46:08
Message-ID: 1125675968.068455.25481.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 456317 by goutte:
SVN_SILENT: add a few "const"
M +6 -5 catalogmanagerview.cpp
--- branches/KDE/3.5/kdesdk/kbabel/catalogmanager/catalogmanagerview.cpp #456316:456317
@@ -1110,7 +1110,7 @@
QValueList<QString> foundFiles;
_stopSearch = false;
- QString search = options.findStr.lower().simplifyWhiteSpace();
+ const QString search = options.findStr.lower().simplifyWhiteSpace();
QStringList searchWords = QStringList::split(' ', search);
QStringList childrenList;
@@ -1249,9 +1249,10 @@
CatManListItem* item=(CatManListItem*)selectedItem();
if(!item) return;
- uint actionValue = NEEDS_PO * item->hasPo( ) + NEEDS_POT * item->hasPot( ) +
- NEEDS_MARK * item->marked( ) + NEEDS_DIR * item->isDir( ) +
- NEEDS_PO_CVS * validPORepository + NEEDS_POT_CVS * validPOTRepository;
+ const uint actionValue =
+ NEEDS_PO * item->hasPo() + NEEDS_POT * item->hasPot() +
+ NEEDS_MARK * item->marked() + NEEDS_DIR * item->isDir() +
+ NEEDS_PO_CVS * validPORepository + NEEDS_POT_CVS * validPOTRepository;
emit selectedChanged(actionValue);
}
@@ -2814,7 +2815,7 @@
CatManListItem *current = static_cast<CatManListItem *>(currentItem());
if( current->isDir() )
{
- QStringList s = current->allChildrenList(true);
+ const QStringList s = current->allChildrenList(true);
QStringList::const_iterator it;
for( it = s.begin() ; it != s.end(); ++it )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic