summaryrefslogtreecommitdiff
path: root/src/opensearch
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@gmail.com>2011-01-13 00:49:59 +0530
committerRohan Garg <rohangarg@gmail.com>2011-01-13 00:49:59 +0530
commit2c0e1fadc3d4bd997b2759879b939403e999ac78 (patch)
tree56bd1de4d6c2aea71618b5b712407b0a6839e6c4 /src/opensearch
parentKrazy Fixes!! (diff)
downloadrekonq-2c0e1fadc3d4bd997b2759879b939403e999ac78.tar.xz
Fix issues as pointed out by Krazy
* Fix spelling issues * Wrap Strings in QL1S * Use Q_OBJECT macro in a class that derives from QObject
Diffstat (limited to 'src/opensearch')
-rw-r--r--src/opensearch/opensearchengine.h2
-rw-r--r--src/opensearch/opensearchreader.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/opensearch/opensearchengine.h b/src/opensearch/opensearchengine.h
index a3ecf59f..c05501fb 100644
--- a/src/opensearch/opensearchengine.h
+++ b/src/opensearch/opensearchengine.h
@@ -48,6 +48,8 @@
class OpenSearchEngine : public QObject
{
+ Q_OBJECT
+
public:
typedef QPair<QString, QString> Parameter;
diff --git a/src/opensearch/opensearchreader.cpp b/src/opensearch/opensearchreader.cpp
index aff9ff36..a111854c 100644
--- a/src/opensearch/opensearchreader.cpp
+++ b/src/opensearch/opensearchreader.cpp
@@ -153,7 +153,7 @@ OpenSearchEngine *OpenSearchReader::read()
else
{
if (engine->suggestionsUrlTemplate().isEmpty()
- && type == QL1S("application/x-suggestions+json")) //note: xml is prefered
+ && type == QL1S("application/x-suggestions+json")) //note: xml is preferred
{
engine->setSuggestionsUrlTemplate(url);
engine->setSuggestionsParameters(parameters);