summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorJonathan Thomas <echidnaman@kubuntu.org>2010-05-27 10:41:57 -0400
committerJonathan Thomas <echidnaman@kubuntu.org>2010-05-27 10:41:57 -0400
commit3e1ea4e6b0b09c8c2ccbfdbabd50c5069c029707 (patch)
tree1d972906b73861ec3e7b455c616169b60953513a /src/urlbar
parentMerge commit 'refs/merge-requests/2285' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-3e1ea4e6b0b09c8c2ccbfdbabd50c5069c029707.tar.xz
Encapsulate single characters in single quotes, since passing a char to QString is more efficient than passing a one-character string.
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlresolver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 494c8145..7333e305 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -91,7 +91,7 @@ UrlResolver::UrlResolver(const QString &typedUrl)
"y[etu]|z[amw]|aero|arpa|biz|com|coop|edu|info|int|gov|mil|museum|name|net|org|"\
"pro)";
- _browseRegexp = QRegExp("(" + protocol + ")|(" + local + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +")");
+ _browseRegexp = QRegExp('(' + protocol + ")|(" + local + ")|(" + address + ")|(" + ipv6 + ")|(" + ipv4 +')');
}
}