summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-04 09:55:11 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-04 09:55:11 +0200
commit5db9e1a6cc412164fdeb3887cd989171223f126e (patch)
treeaa78b5f4b62ff0235abd3980dc5eab16e0af6385 /src
parentMemory leaks fixes (diff)
downloadrekonq-5db9e1a6cc412164fdeb3887cd989171223f126e.tar.xz
Last krazy fixes
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/listitem.h4
-rw-r--r--src/urlbar/urlresolver.cpp2
-rw-r--r--src/urlbar/urlresolver.h2
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;