diff options
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/listitem.h | 4 | ||||
-rw-r--r-- | src/urlbar/urlresolver.cpp | 2 | ||||
-rw-r--r-- | src/urlbar/urlresolver.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/urlbar/listitem.h b/src/urlbar/listitem.h index 6737ed70..c26a1893 100644 --- a/src/urlbar/listitem.h +++ b/src/urlbar/listitem.h @@ -105,7 +105,7 @@ class IconLabel : public QLabel Q_OBJECT public: - IconLabel(const QString &icon, QWidget *parent = 0); + explicit IconLabel(const QString &icon, QWidget *parent = 0); }; @@ -117,7 +117,7 @@ class TextLabel : public QLabel Q_OBJECT public: - TextLabel(const QString &text, const QString &textToPointOut = QString(), QWidget *parent = 0); + explicit TextLabel(const QString &text, const QString &textToPointOut = QString(), QWidget *parent = 0); }; diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp index 276c2531..5e055903 100644 --- a/src/urlbar/urlresolver.cpp +++ b/src/urlbar/urlresolver.cpp @@ -54,7 +54,7 @@ // 5. "fixhosturifilter" -bool UrlSearchItem::operator==(const UrlSearchItem &i) +bool UrlSearchItem::operator==(const UrlSearchItem &i) const { return url == i.url; } diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h index d3cdedbe..0b519989 100644 --- a/src/urlbar/urlresolver.h +++ b/src/urlbar/urlresolver.h @@ -59,7 +59,7 @@ public: : type(_type), url(_url), title(_title) {}; - bool operator==(const UrlSearchItem &i); + bool operator==(const UrlSearchItem &i) const; }; typedef QList <UrlSearchItem> UrlSearchList; |