summaryrefslogtreecommitdiff
path: root/src/opensearch
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@gmail.com>2011-01-12 04:01:02 +0530
committerRohan Garg <rohangarg@gmail.com>2011-01-12 04:01:02 +0530
commit3dbfc06247db3c62a73f1f3022b648197ae24a00 (patch)
tree737dc5226e9e710cd63de3559038eecd334035ef /src/opensearch
parentstring improvements in the tab settings page (diff)
downloadrekonq-3dbfc06247db3c62a73f1f3022b648197ae24a00.tar.xz
Krazy Fixes!!
Add #rekonq_define.h to files that now use QL1C
Diffstat (limited to 'src/opensearch')
-rw-r--r--src/opensearch/opensearchengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opensearch/opensearchengine.cpp b/src/opensearch/opensearchengine.cpp
index 37685fb5..ef0f3f74 100644
--- a/src/opensearch/opensearchengine.cpp
+++ b/src/opensearch/opensearchengine.cpp
@@ -58,7 +58,7 @@ QString OpenSearchEngine::parseTemplate(const QString &searchTerm, const QString
// Simple conversion to RFC 3066.
language = language.replace(QL1C('_'), QL1C('-'));
QString country = language;
- country = (country.replace(0, country.indexOf("-")+1, "")).toLower();
+ country = (country.remove(0, country.indexOf(QL1C('-'))+1)).toLower();
const int firstDashPosition = country.indexOf(QL1C('-'));
if (firstDashPosition >= 0)
country = country.mid(firstDashPosition+1);