diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tabwindow/tabwindow.h | 2 | ||||
-rw-r--r-- | src/urlbar/bookmarkwidget.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tabwindow/tabwindow.h b/src/tabwindow/tabwindow.h index 3c7d9c8b..018ad0e7 100644 --- a/src/tabwindow/tabwindow.h +++ b/src/tabwindow/tabwindow.h @@ -61,7 +61,7 @@ class TabWindow : public RekonqWindow public: explicit TabWindow(bool withTab = true, bool PrivateBrowsingMode = false, QWidget *parent = 0); - TabWindow(WebPage *pg, QWidget *parent = 0); + explicit TabWindow(WebPage *pg, QWidget *parent = 0); WebWindow* currentWebWindow() const; WebWindow* webWindow(int index) const; diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp index 47c06d75..e266a071 100644 --- a/src/urlbar/bookmarkwidget.cpp +++ b/src/urlbar/bookmarkwidget.cpp @@ -154,7 +154,7 @@ BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent) QList<Nepomuk::Tag> tagList = Nepomuk::Tag::allTags(); - Q_FOREACH(Nepomuk::Tag t, tagList) + Q_FOREACH(const Nepomuk::Tag &t, tagList) { m_tList.append(t.label()); } @@ -296,6 +296,7 @@ void BookmarkWidget::addTags(QList<Nepomuk::Tag> tagList) m_nfoResource.addTag(tag); } } + Q_FOREACH(Nepomuk::Tag tag, m_nfoResource.tags()) { if (!tagList.contains(tag)) |