mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
RSS: Remove last singleton
This commit is contained in:
@@ -36,27 +36,11 @@
|
||||
#include "rsssettings.h"
|
||||
#include "qinisettings.h"
|
||||
|
||||
RssDownloadRuleList* RssDownloadRuleList::m_instance = 0;
|
||||
|
||||
RssDownloadRuleList::RssDownloadRuleList(){
|
||||
RssDownloadRuleList::RssDownloadRuleList()
|
||||
{
|
||||
loadRulesFromStorage();
|
||||
}
|
||||
|
||||
RssDownloadRuleList* RssDownloadRuleList::instance()
|
||||
{
|
||||
if (!m_instance)
|
||||
m_instance = new RssDownloadRuleList;
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
void RssDownloadRuleList::drop()
|
||||
{
|
||||
if (m_instance) {
|
||||
delete m_instance;
|
||||
m_instance = 0;
|
||||
}
|
||||
}
|
||||
|
||||
RssDownloadRulePtr RssDownloadRuleList::findMatchingRule(const QString &feed_url, const QString &article_title) const
|
||||
{
|
||||
Q_ASSERT(RssSettings().isRssDownloadingEnabled());
|
||||
|
||||
Reference in New Issue
Block a user