In rssdownloadrule.{cpp,h} 'RssDownloadRule::operator==' made const.

This commit is contained in:
Konstantin Goncharik 2014-01-04 01:28:01 +08:00 committed by sledgehammer999
commit 1ba13b32a8
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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;