From 267f30414d261328a9459273e88c96f7d4ce284b Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Mon, 8 Jul 2013 18:04:53 +0300 Subject: [PATCH] Fix compilation under gcc. --- src/rss/rssdownloadrulelist.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rss/rssdownloadrulelist.cpp b/src/rss/rssdownloadrulelist.cpp index b838eba20..7ab7be637 100644 --- a/src/rss/rssdownloadrulelist.cpp +++ b/src/rss/rssdownloadrulelist.cpp @@ -56,9 +56,7 @@ void RssDownloadRuleList::replace(RssDownloadRuleList *other) { m_rules.clear(); m_feedRules.clear(); foreach (const QString& name, other->ruleNames()) { - RssDownloadRule* r = new RssDownloadRule; - *r = *(other->getRule(name).value); // Implicit copy - saveRule(RssDownloadRulePtr(r)); + saveRule(other->getRule(name)); } }