Browse Source

Fix compilation under gcc.

adaptive-webui-19844
sledgehammer999 12 years ago
parent
commit
267f30414d
  1. 4
      src/rss/rssdownloadrulelist.cpp

4
src/rss/rssdownloadrulelist.cpp

@ -56,9 +56,7 @@ void RssDownloadRuleList::replace(RssDownloadRuleList *other) {
m_rules.clear(); m_rules.clear();
m_feedRules.clear(); m_feedRules.clear();
foreach (const QString& name, other->ruleNames()) { foreach (const QString& name, other->ruleNames()) {
RssDownloadRule* r = new RssDownloadRule; saveRule(other->getRule(name));
*r = *(other->getRule(name).value); // Implicit copy
saveRule(RssDownloadRulePtr(r));
} }
} }

Loading…
Cancel
Save