Commit c7bfcbe6 authored by Urs Wolfer's avatar Urs Wolfer

* fix typo

* improve foreach loop

svn path=/trunk/KDE/kdenetwork/krdc/; revision=1177077
parent e6fb70f3
......@@ -174,7 +174,7 @@ const QStringList BookmarkManager::findBookmarkAddresses(const KBookmarkGroup &g
void BookmarkManager::removeByUrl(KBookmarkManager *manager, const QString &url, bool ignoreHistory, const QString updateTitle)
{
foreach(QString address, findBookmarkAddresses(manager->root(), url)) {
foreach(const QString &address, findBookmarkAddresses(manager->root(), url)) {
KBookmark bm = manager->findByAddress(address);
if (ignoreHistory && bm.parentGroup().metaDataItem("krdc-history") == "historyfolder") {
if (!updateTitle.isEmpty()) {
......@@ -194,7 +194,7 @@ void BookmarkManager::removeByUrl(KBookmarkManager *manager, const QString &url,
void BookmarkManager::updateTitle(KBookmarkManager *manager, const QString &url, const QString &title)
{
foreach(QString address, findBookmarkAddresses(manager->root(), url)) {
foreach(const QString &address, findBookmarkAddresses(manager->root(), url)) {
KBookmark bm = manager->findByAddress(address);
bm.setFullText(title);
kDebug(5010) << "Update" << bm.fullText();
......
......@@ -80,7 +80,7 @@ void ApproverManager::onFinished()
approver->deleteLater();
if (m_approvers.empty()) {
kDebug() << "Quiting approver manager";
kDebug() << "Quitting approver manager";
KApplication::kApplication()->quit();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment