mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 07:48:04 +00:00
Fix compiler warnings.
This commit is contained in:
parent
b894d886ec
commit
3cdc6fb978
@ -160,7 +160,7 @@ Article *Article::fromVariantHash(Feed *feed, const QVariantHash &varHash)
|
|||||||
guid = varHash.value(Str_Torrent_Url).toString();
|
guid = varHash.value(Str_Torrent_Url).toString();
|
||||||
if (guid.isEmpty())
|
if (guid.isEmpty())
|
||||||
guid = varHash.value(Str_Title).toString();
|
guid = varHash.value(Str_Title).toString();
|
||||||
if (guid.isEmpty()) nullptr;
|
if (guid.isEmpty()) return nullptr;
|
||||||
|
|
||||||
return new Article(feed, guid
|
return new Article(feed, guid
|
||||||
, varHash.value(Str_Date).toDateTime()
|
, varHash.value(Str_Date).toDateTime()
|
||||||
|
@ -63,9 +63,9 @@ using namespace RSS;
|
|||||||
|
|
||||||
QPointer<Session> Session::m_instance = nullptr;
|
QPointer<Session> Session::m_instance = nullptr;
|
||||||
|
|
||||||
Session::Session()
|
Session::Session()
|
||||||
: m_workingThread(new QThread(this))
|
: m_processingEnabled(SettingsStorage::instance()->loadValue(SettingsKey_ProcessingEnabled, false).toBool())
|
||||||
, m_processingEnabled(SettingsStorage::instance()->loadValue(SettingsKey_ProcessingEnabled, false).toBool())
|
, m_workingThread(new QThread(this))
|
||||||
, m_refreshInterval(SettingsStorage::instance()->loadValue(SettingsKey_RefreshInterval, 30).toUInt())
|
, m_refreshInterval(SettingsStorage::instance()->loadValue(SettingsKey_RefreshInterval, 30).toUInt())
|
||||||
, m_maxArticlesPerFeed(SettingsStorage::instance()->loadValue(SettingsKey_MaxArticlesPerFeed, 50).toInt())
|
, m_maxArticlesPerFeed(SettingsStorage::instance()->loadValue(SettingsKey_MaxArticlesPerFeed, 50).toInt())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user