Start RSS rewrite: Use SharedPtr for RssArticle objects

This commit is contained in:
Christophe Dumez 2012-02-19 16:38:41 +02:00
parent 32a6c89c8c
commit a13bb06ec3
13 changed files with 208 additions and 265 deletions

View file

@ -137,11 +137,10 @@ void RssDownloadRule::setSavePath(const QString &save_path)
QStringList RssDownloadRule::findMatchingArticles(const RssFeed *feed) const
{
QStringList ret;
const QHash<QString, RssArticle>& feed_articles = feed->articleListNoCopy();
QHash<QString, RssArticle>::const_iterator artIt;
for(artIt = feed_articles.begin(); artIt != feed_articles.end(); artIt++) {
const QString title = artIt.value().title();
if(matches(title))
const RssArticleHash& feed_articles = feed->articleHash();
for(RssArticleHash::ConstIterator artIt = feed_articles.begin(); artIt != feed_articles.end(); artIt++) {
const QString title = artIt.value()->title();
if (matches(title))
ret << title;
}
return ret;