summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 16:38:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 16:38:18 +0200
commitc1e00c7f7d0c2911d7529dcc23553f2284f41d8a (patch)
tree8dd18e51217cf13b436c90c65c74a9446d2b1a68 /src/urlbar/urlresolver.cpp
parentFix rsswidget files (diff)
downloadrekonq-c1e00c7f7d0c2911d7529dcc23553f2284f41d8a.tar.xz
Krazy fixes
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r--src/urlbar/urlresolver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 4dd96041..2fd02c10 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -56,7 +56,7 @@
// 5. "fixhosturifilter"
-bool UrlSearchItem::operator==(UrlSearchItem i)
+bool UrlSearchItem::operator==(const UrlSearchItem &i)
{
return url == i.url;
}
@@ -118,12 +118,12 @@ UrlSearchList UrlResolver::orderedSearchItems()
}
}
- foreach(UrlSearchItem i, common)
+ foreach(const UrlSearchItem &i, common)
{
list << i;
}
- foreach(UrlSearchItem i, bookmarksList)
+ foreach(const UrlSearchItem &i, bookmarksList)
{
if (!common.contains(i))
list << i;
@@ -149,8 +149,8 @@ bool UrlResolver::isHttp()
"y[etu]|z[amw]|aero|arpa|biz|com|coop|edu|info|int|gov|mil|museum|name|net|org|"\
"pro)";
- return _typedString.startsWith("http://")
- || _typedString.startsWith("https://")
+ return _typedString.startsWith( QL1S("http://") )
+ || _typedString.startsWith( QL1S("https://") )
|| (QRegExp(address, Qt::CaseInsensitive).indexIn(_typedString) != -1)
|| (QRegExp(ipv4, Qt::CaseInsensitive).indexIn(_typedString) != -1)
|| (QRegExp(ipv6, Qt::CaseInsensitive).indexIn(_typedString) != -1);