summaryrefslogtreecommitdiff
path: root/src/search/searchengine.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-02 10:49:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-02 10:49:00 +0200
commit7feb86eb8a3210da771c584ff67fa6dc5e6eaf47 (patch)
tree5991c75b06b14c7a653c23de365a6bfd6d25c122 /src/search/searchengine.cpp
parentMerge commit 'refs/merge-requests/195' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-7feb86eb8a3210da771c584ff67fa6dc5e6eaf47.tar.xz
trivials:
paren --> parent parameters passing: from value to const reference
Diffstat (limited to 'src/search/searchengine.cpp')
-rw-r--r--src/search/searchengine.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/search/searchengine.cpp b/src/search/searchengine.cpp
index 8eecfa52..89e62dee 100644
--- a/src/search/searchengine.cpp
+++ b/src/search/searchengine.cpp
@@ -111,7 +111,7 @@ KService::Ptr SearchEngine::defaultEngine()
}
-KService::Ptr SearchEngine::fromString(QString text)
+KService::Ptr SearchEngine::fromString(const QString &text)
{
KService::List providers = KServiceTypeTrader::self()->query("SearchProvider");
int i = 0;
@@ -136,7 +136,7 @@ KService::Ptr SearchEngine::fromString(QString text)
}
-QString SearchEngine::extractQuery(QString text)
+QString SearchEngine::extractQuery(const QString &text)
{
QString query = text;
KService::Ptr engine = SearchEngine::fromString(text);
@@ -149,12 +149,9 @@ QString SearchEngine::extractQuery(QString text)
}
-QString SearchEngine::buildQuery(KService::Ptr engine, QString text)
+QString SearchEngine::buildQuery(KService::Ptr engine, const QString &text)
{
QString query = engine->property("Query").toString();
query = query.replace("\\{@}", KUrl::toPercentEncoding(text));
return query;
}
-
-
-