Optimized RSS settings code

This commit is contained in:
Christophe Dumez
2010-11-17 20:21:03 +00:00
parent 29e465d2f6
commit 6629c39f01
7 changed files with 57 additions and 63 deletions

View File

@@ -57,7 +57,7 @@ void RssDownloadRuleList::drop()
RssDownloadRule RssDownloadRuleList::findMatchingRule(const QString &feed_url, const QString &article_title) const
{
Q_ASSERT(RssSettings::isRssDownloadingEnabled());
Q_ASSERT(RssSettings().isRssDownloadingEnabled());
QStringList rule_names = feedRules(feed_url);
foreach(const QString &rule_name, rule_names) {
RssDownloadRule rule = m_rules[rule_name];