[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime
From: Laurent Montel <montel () kde ! org>
Date: 2008-09-18 11:18:30
Message-ID: 1221736710.088018.18370.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 862270 by mlaurent:
Const'ify when possible
M +2 -2 kcontrol/icons/iconthemes.cpp
M +1 -1 khelpcenter/htmlsearch/htmlsearch.cpp
M +1 -1 khelpcenter/htmlsearch/kcmhtmlsearch.cpp
M +1 -1 kioslave/floppy/kio_floppy.cpp
M +1 -1 kioslave/floppy/program.cpp
M +2 -2 kioslave/man/kio_man.cpp
M +2 -2 kioslave/nfs/kio_nfs.cpp
M +1 -1 knotify/notifybysound.cpp
M +2 -2 kwalletd/kwalletd.cpp
--- trunk/KDE/kdebase/runtime/kcontrol/icons/iconthemes.cpp #862269:862270
@@ -160,7 +160,7 @@
QStringList themelist(KIconTheme::list());
QString name;
QString tname;
- QStringList::Iterator it;
+ QStringList::const_iterator it;
QMap <QString, QString> themeNames;
for (it=themelist.begin(); it != themelist.end(); ++it)
{
@@ -301,7 +301,7 @@
// iterate all the dirs looking for an index.theme or index.desktop file
QStringList entries = themeDir->entries();
- for (QStringList::Iterator it = entries.begin();
+ for (QStringList::const_iterator it = entries.begin();
it != entries.end();
++it) {
possibleDir = const_cast<KArchiveEntry*>(themeDir->entry(*it));
--- trunk/KDE/kdebase/runtime/khelpcenter/htmlsearch/htmlsearch.cpp #862269:862270
@@ -82,7 +82,7 @@
// add local urls
QStringList add = scopeGroup.readEntry("Paths", QStringList() );
- QStringList::Iterator it;
+ QStringList::const_iterator it;
for (it = add.begin(); it != add.end(); ++it) {
if ( ( *it ).at( ( *it ).length() - 1 ) != '/' )
( *it ) += '/';
--- trunk/KDE/kdebase/runtime/khelpcenter/htmlsearch/kcmhtmlsearch.cpp #862269:862270
@@ -284,7 +284,7 @@
QStringList l = config->readPathEntry("Paths", QStringList());
searchPaths->clear();
- QStringList::Iterator it;
+ QStringList::const_iterator it;
for (it=l.begin(); it != l.end(); ++it)
searchPaths->insertItem(*it);
--- trunk/KDE/kdebase/runtime/kioslave/floppy/kio_floppy.cpp #862269:862270
@@ -71,7 +71,7 @@
drive=QString();
rest=QString();
QStringList list=path.split("/");
- for (QStringList::Iterator it=list.begin(); it!=list.end(); ++it)
+ for (QStringList::const_iterator it=list.begin(); it!=list.end(); ++it)
{
if (it==list.begin())
drive=(*it)+':';
--- trunk/KDE/kdebase/runtime/kioslave/floppy/program.cpp #862269:862270
@@ -132,7 +132,7 @@
char **arglist=(char**)malloc((mArgs.count()+1)*sizeof(char*));
int c=0;
- for (QStringList::Iterator it=mArgs.begin(); it!=mArgs.end(); ++it)
+ for (QStringList::const_iterator it=mArgs.begin(); it!=mArgs.end(); ++it)
{
arglist[c]=(char*)malloc((*it).length()+1);
strcpy(arglist[c], (*it).toLatin1());
--- trunk/KDE/kdebase/runtime/kioslave/man/kio_man.cpp #862269:862270
@@ -1067,7 +1067,7 @@
// Insert constructed path ($MANPATH was empty, or
// there was a ":" at an end or "::")
- for ( QStringList::Iterator it2 = constr_path.begin();
+ for ( QStringList::const_iterator it2 = constr_path.begin();
it2 != constr_path.end();
it2++ )
{
@@ -1534,7 +1534,7 @@
QStringList list = findPages( section, QString(), false );
QStringList::Iterator it = list.begin();
- const QStringList::Iterator end = list.end();
+ QStringList::const_iterator end = list.end();
for ( ; it != end; ++it ) {
stripExtension( &(*it) );
--- trunk/KDE/kdebase/runtime/kioslave/nfs/kio_nfs.cpp #862269:862270
@@ -515,7 +515,7 @@
totalSize( m_exportedDirs.count());
//in this case we don't need to do a real listdir
UDSEntry entry;
- for (QStringList::Iterator it=m_exportedDirs.begin(); it!=m_exportedDirs.end(); ++it)
+ for (QStringList::const_iterator it=m_exportedDirs.begin(); it!=m_exportedDirs.end(); ++it)
{
entry.clear();
entry.insert( KIO::UDSEntry::UDS_NAME, (*it) );
@@ -559,7 +559,7 @@
UDSEntry entry;
//stat all files in filesToList
- for (QStringList::Iterator it=filesToList.begin(); it!=filesToList.end(); ++it)
+ for (QStringList::const_iterator it=filesToList.begin(); it!=filesToList.end(); ++it)
{
diropargs dirargs;
diropres dirres;
--- trunk/KDE/kdebase/runtime/knotify/notifybysound.cpp #862269:862270
@@ -173,7 +173,7 @@
if ( d->externalPlayer.isEmpty() ) {
QStringList players;
players << "wavplay" << "aplay" << "auplay" << "artsplay" << "akodeplay";
- QStringList::Iterator it = players.begin();
+ QStringList::const_iterator it = players.begin();
while ( d->externalPlayer.isEmpty() && it != players.end() ) {
d->externalPlayer = KStandardDirs::findExe( *it );
++it;
--- trunk/KDE/kdebase/runtime/kwalletd/kwalletd.cpp #862269:862270
@@ -1258,7 +1258,7 @@
_implicitAllowMap.clear();
const KConfigGroup autoAllowGroup(&cfg, "Auto Allow");
QStringList entries = autoAllowGroup.entryMap().keys();
- for (QStringList::Iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (QStringList::const_iterator i = entries.begin(); i != entries.end(); ++i) {
_implicitAllowMap[*i] = autoAllowGroup.readEntry(*i, QStringList());
}
@@ -1266,7 +1266,7 @@
_implicitDenyMap.clear();
const KConfigGroup autoDenyGroup(&cfg, "Auto Deny");
entries = autoDenyGroup.entryMap().keys();
- for (QStringList::Iterator i = entries.begin(); i != entries.end(); ++i) {
+ for (QStringList::const_iterator i = entries.begin(); i != entries.end(); ++i) {
_implicitDenyMap[*i] = autoDenyGroup.readEntry(*i, QStringList());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic