summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);