mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Start RSS rewrite: Use SharedPtr for RssArticle objects
This commit is contained in:
parent
32a6c89c8c
commit
a13bb06ec3
13 changed files with 208 additions and 265 deletions
|
@ -133,12 +133,12 @@ void RssManager::saveStreamList() const {
|
|||
settings.setRssFeedsAliases(aliases);
|
||||
}
|
||||
|
||||
static bool laterItemDate(const RssArticle& a, const RssArticle& b)
|
||||
static bool laterItemDate(const RssArticlePtr& a, const RssArticlePtr& b)
|
||||
{
|
||||
return (a.date() > b.date());
|
||||
return (a->date() > b->date());
|
||||
}
|
||||
|
||||
void RssManager::sortNewsList(QList<RssArticle>& news_list) {
|
||||
void RssManager::sortNewsList(QList<RssArticlePtr>& news_list) {
|
||||
qSort(news_list.begin(), news_list.end(), laterItemDate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue