From edd7f8e5f51bc35c8ecf90f9467f1fbdf1ca9e21 Mon Sep 17 00:00:00 2001 From: Konstantin Goncharik Date: Sat, 4 Jan 2014 01:28:01 +0800 Subject: [PATCH] In rssdownloadrule.{cpp,h} 'RssDownloadRule::operator==' made const. --- src/rss/rssdownloadrule.cpp | 2 +- src/rss/rssdownloadrule.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rss/rssdownloadrule.cpp b/src/rss/rssdownloadrule.cpp index dc6971780..27f0bdb18 100644 --- a/src/rss/rssdownloadrule.cpp +++ b/src/rss/rssdownloadrule.cpp @@ -106,7 +106,7 @@ QVariantHash RssDownloadRule::toVariantHash() const return hash; } -bool RssDownloadRule::operator==(const RssDownloadRule &other) { +bool RssDownloadRule::operator==(const RssDownloadRule &other) const { return m_name == other.name(); } diff --git a/src/rss/rssdownloadrule.h b/src/rss/rssdownloadrule.h index 5df462a22..c01022af2 100644 --- a/src/rss/rssdownloadrule.h +++ b/src/rss/rssdownloadrule.h @@ -67,7 +67,7 @@ public: inline void setUseRegex(bool enabled) { m_useRegex = enabled; } QStringList findMatchingArticles(const RssFeedPtr& feed) const; // Operators - bool operator==(const RssDownloadRule &other); + bool operator==(const RssDownloadRule &other) const; private: QString m_name;