Add const

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=840617
This commit is contained in:
Laurent Montel 2008-08-01 11:23:42 +00:00
parent ea546d6b61
commit 642828d7aa

View File

@ -468,7 +468,7 @@ void ConfigXmlHandler::addItem()
//FIXME: the split() is naive and will break on lists with ,'s in them //FIXME: the split() is naive and will break on lists with ,'s in them
QStringList tmpList = m_default.split(","); QStringList tmpList = m_default.split(",");
KUrl::List defaultList; KUrl::List defaultList;
foreach (QString tmp, tmpList) { foreach (const QString& tmp, tmpList) {
defaultList.append(KUrl(tmp)); defaultList.append(KUrl(tmp));
} }
item = m_config->addItemUrlList(m_name, *d->newUrlList(), defaultList, m_key);*/ item = m_config->addItemUrlList(m_name, *d->newUrlList(), defaultList, m_key);*/