diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-24 18:32:54 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-24 18:32:54 +0100 |
commit | 979ccc6e7bb7c4f8d811555002dae999f661018d (patch) | |
tree | 46564c1838537498dba6a29b509d36391bc009cc /src | |
parent | updated release howto ;) (diff) | |
download | rekonq-979ccc6e7bb7c4f8d811555002dae999f661018d.tar.xz |
cppcheck
Diffstat (limited to 'src')
-rw-r--r-- | src/history/historymanager.h | 2 | ||||
-rw-r--r-- | src/urlbar/urlresolver.h | 44 |
2 files changed, 24 insertions, 22 deletions
diff --git a/src/history/historymanager.h b/src/history/historymanager.h index b28dfcdc..d4531e5c 100644 --- a/src/history/historymanager.h +++ b/src/history/historymanager.h @@ -57,7 +57,7 @@ class HistoryItem { public: - HistoryItem() + HistoryItem() : visitCount(1) {} explicit HistoryItem(const QString &u, diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h index 167ee283..4608b103 100644 --- a/src/urlbar/urlresolver.h +++ b/src/urlbar/urlresolver.h @@ -68,22 +68,24 @@ public: int image_height; QString bookmarkPath; - UrlSearchItem(const UrlSearchItem &item) : type(item.type), - url(item.url), - title(item.title), - description(item.description), - image(item.image), - image_width(item.image_width), - image_height(item.image_height) + UrlSearchItem(const UrlSearchItem &item) + : type(item.type) + , url(item.url) + , title(item.title) + , description(item.description) + , image(item.image) + , image_width(item.image_width) + , image_height(item.image_height) {}; - UrlSearchItem() : type(UrlSearchItem::Undefined), - url(QString()), - title(QString()), - description(QString()), - image(QString()), - image_width(0), - image_height(0) + UrlSearchItem() + : type(UrlSearchItem::Undefined) + , url(QString()) + , title(QString()) + , description(QString()) + , image(QString()) + , image_width(0) + , image_height(0) {}; UrlSearchItem(const int &_type, @@ -94,13 +96,13 @@ public: const int &_image_width = 0, const int &_image_height = 0 ) - : type(_type), - url(_url), - title(_title), - description(_description), - image(_image), - image_width(_image_width), - image_height(_image_height) + : type(_type) + , url(_url) + , title(_title) + , description(_description) + , image(_image) + , image_width(_image_width) + , image_height(_image_height) {}; inline bool operator==(const UrlSearchItem &i) const |