mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
RSS code clean up
This commit is contained in:
parent
1905a6f0d1
commit
32a6c89c8c
6 changed files with 13 additions and 8 deletions
|
@ -177,8 +177,8 @@ void RssFeed::setIconPath(const QString &path) {
|
|||
m_icon = path;
|
||||
}
|
||||
|
||||
RssArticle& RssFeed::getItem(const QString &guid) {
|
||||
return m_articles[guid];
|
||||
const RssArticle RssFeed::getItem(const QString &guid) const {
|
||||
return m_articles.value(guid);
|
||||
}
|
||||
|
||||
uint RssFeed::count() const{
|
||||
|
@ -300,7 +300,7 @@ void RssFeed::downloadMatchingArticleTorrents() {
|
|||
Q_ASSERT(RssSettings().isRssDownloadingEnabled());
|
||||
QHash<QString, RssArticle>::iterator it;
|
||||
for (it = m_articles.begin(); it != m_articles.end(); it++) {
|
||||
RssArticle &item = it.value();
|
||||
RssArticle item = it.value();
|
||||
if(item.isRead()) continue;
|
||||
QString torrent_url;
|
||||
if(item.hasAttachment())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue