Browse Source

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

adaptive-webui-19844
Konstantin Goncharik 11 years ago
parent
commit
edd7f8e5f5
  1. 2
      src/rss/rssdownloadrule.cpp
  2. 2
      src/rss/rssdownloadrule.h

2
src/rss/rssdownloadrule.cpp

@ -106,7 +106,7 @@ QVariantHash RssDownloadRule::toVariantHash() const
return hash; return hash;
} }
bool RssDownloadRule::operator==(const RssDownloadRule &other) { bool RssDownloadRule::operator==(const RssDownloadRule &other) const {
return m_name == other.name(); return m_name == other.name();
} }

2
src/rss/rssdownloadrule.h

@ -67,7 +67,7 @@ public:
inline void setUseRegex(bool enabled) { m_useRegex = enabled; } inline void setUseRegex(bool enabled) { m_useRegex = enabled; }
QStringList findMatchingArticles(const RssFeedPtr& feed) const; QStringList findMatchingArticles(const RssFeedPtr& feed) const;
// Operators // Operators
bool operator==(const RssDownloadRule &other); bool operator==(const RssDownloadRule &other) const;
private: private:
QString m_name; QString m_name;

Loading…
Cancel
Save