diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-25 00:19:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-25 00:19:27 +0100 |
commit | 9d20e99fffeebe67fd8ff27cb4f9e353892f5190 (patch) | |
tree | 23462fac2e862a2f408a26f94ab024c4174c3458 /src/opensearch/suggestionparser.h | |
parent | rekonq 0.6.82 (diff) | |
download | rekonq-9d20e99fffeebe67fd8ff27cb4f9e353892f5190.tar.xz |
Coding style
Diffstat (limited to 'src/opensearch/suggestionparser.h')
-rw-r--r-- | src/opensearch/suggestionparser.h | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/src/opensearch/suggestionparser.h b/src/opensearch/suggestionparser.h index 902793d0..f96061c7 100644 --- a/src/opensearch/suggestionparser.h +++ b/src/opensearch/suggestionparser.h @@ -1,5 +1,5 @@ /* ============================================================ - * + * * This file is a part of the rekonq project * * Copyright (C) 2010-2011 by Lionel Chauvin <megabigbug@yahoo.fr> @@ -50,20 +50,20 @@ public: int image_height; Response(const Response &item) : title(item.title), - description(item.description), - url(item.url), - image(item.image), - image_width(item.image_width), - image_height(item.image_height) + description(item.description), + url(item.url), + image(item.image), + image_width(item.image_width), + image_height(item.image_height) {}; Response() : title(QString()), - description(QString()), - url(QString()), - image(QString()), - image_width(0), - image_height(0) + description(QString()), + url(QString()), + image(QString()), + image_width(0), + image_height(0) {}; @@ -73,11 +73,11 @@ public: const QString &_image = QString(), const int &_image_width = 0, const int &_image_height = 0) : title(_title), - description(_description), - url(_url), - image(_image), - image_width(_image_width), - image_height(_image_height) + description(_description), + url(_url), + image(_image), + image_width(_image_width), + image_height(_image_height) {}; }; @@ -98,13 +98,16 @@ public: class XMLParser : public SuggestionParser -{ +{ protected: QXmlStreamReader m_reader; public: ResponseList parse(const QByteArray &resp); - inline QString type() { return QL1S("application/x-suggestions+xml"); } + inline QString type() + { + return QL1S("application/x-suggestions+xml"); + } }; @@ -112,10 +115,13 @@ class JSONParser : public SuggestionParser { private: QScriptEngine m_reader; - + public: ResponseList parse(const QByteArray &resp); - inline QString type() { return QL1S("application/x-suggestions+json"); } + inline QString type() + { + return QL1S("application/x-suggestions+json"); + } }; #endif //SUGGESTIONPARSER_H |