summaryrefslogtreecommitdiff
path: root/src/opensearch/opensearchengine.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-10-04 19:21:41 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-10-04 19:21:41 +0200
commite30a415100472fff8b1721d9df56ac825c614fbf (patch)
treece1e60bdaf3508db17da733fc48e83cc2f2f251c /src/opensearch/opensearchengine.cpp
parentuse local language instead of english for opensearch (diff)
downloadrekonq-e30a415100472fff8b1721d9df56ac825c614fbf.tar.xz
use QL1C and QL1S
Diffstat (limited to 'src/opensearch/opensearchengine.cpp')
-rw-r--r--src/opensearch/opensearchengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opensearch/opensearchengine.cpp b/src/opensearch/opensearchengine.cpp
index 4ef43871..9b0d7d03 100644
--- a/src/opensearch/opensearchengine.cpp
+++ b/src/opensearch/opensearchengine.cpp
@@ -57,13 +57,13 @@ QString OpenSearchEngine::parseTemplate(const QString &searchTerm, const QString
{
QString language = QLocale().name();
// Simple conversion to RFC 3066.
- language = language.replace(QLatin1Char('_'), QLatin1Char('-'));
+ language = language.replace(QL1C('_'), QL1C('-'));
QString result = searchTemplate;
result.replace(QL1S("{count}"), QL1S("20"));
result.replace(QL1S("{startIndex}"), QL1S("0"));
result.replace(QL1S("{startPage}"), QL1S("0"));
- result.replace(QLatin1String("{language}"), language);
+ result.replace(QL1S("{language}"), language);
result.replace(QL1S("{inputEncoding}"), QL1S("UTF-8"));
result.replace(QL1S("{outputEncoding}"), QL1S("UTF-8"));
result.replace(QL1S("{searchTerms}"), searchTerm);