mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Start RSS rewrite: Use SharedPtr for RssArticle objects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user