From c1e00c7f7d0c2911d7529dcc23553f2284f41d8a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 30 Apr 2010 16:38:18 +0200 Subject: Krazy fixes --- src/urlbar/urlresolver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/urlbar/urlresolver.cpp') 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); -- cgit v1.2.1