From c4fbac5bbdc10c2d657f8b3a7759ab7edf52a744 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Sat, 11 Sep 2010 17:29:03 +0530 Subject: Krazy Fixes for rekonq modified: src/bookmarks/bookmarkprovider.cpp modified: src/history/historymanager.cpp modified: src/iconmanager.cpp modified: src/urlbar/listitem.cpp --- src/bookmarks/bookmarkprovider.cpp | 2 +- src/history/historymanager.cpp | 2 +- src/iconmanager.cpp | 2 +- src/urlbar/listitem.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp index 3e2d2814..beca5475 100644 --- a/src/bookmarks/bookmarkprovider.cpp +++ b/src/bookmarks/bookmarkprovider.cpp @@ -266,7 +266,7 @@ void BookmarkProvider::find(QList *list, const KBookmark &bookmark, c } else { - QStringList words = text.split(" "); + QStringList words = text.split(' '); bool matches = true; foreach (const QString &word, words) { diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp index 4a3039f3..4a2c0459 100644 --- a/src/history/historymanager.cpp +++ b/src/history/historymanager.cpp @@ -240,7 +240,7 @@ QList HistoryManager::find(const QString &text) int index = m_historyFilterModel->historyLocation(url); HistoryItem item = m_history.at(index); - QStringList words = text.split(" "); + QStringList words = text.split(' '); bool matches = true; foreach (const QString &word, words) { diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index c4b9751d..5c8fbf54 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -149,7 +149,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify) if(!relUrlString.isEmpty()) { - faviconUrl = relUrlString.startsWith("http") + faviconUrl = relUrlString.startsWith(QLatin1String("http")) ? KUrl(relUrlString) : KUrl(rootUrlString + QL1C('/') + relUrlString) ; } diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 5ff90056..746b4db2 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -209,7 +209,7 @@ TextLabel::TextLabel(const QString &text, const QString &textToPointOut, QWidget : QLabel(parent) { QString t = text; - const bool wasItalic = t.startsWith(""); + const bool wasItalic = t.startsWith(QLatin1String("")); if (wasItalic) t.remove(QRegExp("<[/ib]*>")); -- cgit v1.2.1