mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Improve function interface
`SettingsStorage` methods require `QString` so make `SettingValue` follow it. `Path::operator+` can use `QStringView` to accept wider audience.
This commit is contained in:
@@ -98,9 +98,9 @@ QString computeSmartFilterRegex(const QStringList &filters)
|
||||
}
|
||||
|
||||
AutoDownloader::AutoDownloader()
|
||||
: m_storeProcessingEnabled("RSS/AutoDownloader/EnableProcessing", false)
|
||||
, m_storeSmartEpisodeFilter("RSS/AutoDownloader/SmartEpisodeFilter")
|
||||
, m_storeDownloadRepacks("RSS/AutoDownloader/DownloadRepacks")
|
||||
: m_storeProcessingEnabled(u"RSS/AutoDownloader/EnableProcessing"_qs, false)
|
||||
, m_storeSmartEpisodeFilter(u"RSS/AutoDownloader/SmartEpisodeFilter"_qs)
|
||||
, m_storeDownloadRepacks(u"RSS/AutoDownloader/DownloadRepacks"_qs)
|
||||
, m_processingTimer(new QTimer(this))
|
||||
, m_ioThread(new QThread(this))
|
||||
{
|
||||
|
||||
@@ -58,9 +58,9 @@ using namespace RSS;
|
||||
QPointer<Session> Session::m_instance = nullptr;
|
||||
|
||||
Session::Session()
|
||||
: m_storeProcessingEnabled("RSS/Session/EnableProcessing")
|
||||
, m_storeRefreshInterval("RSS/Session/RefreshInterval", 30)
|
||||
, m_storeMaxArticlesPerFeed("RSS/Session/MaxArticlesPerFeed", 50)
|
||||
: m_storeProcessingEnabled(u"RSS/Session/EnableProcessing"_qs)
|
||||
, m_storeRefreshInterval(u"RSS/Session/RefreshInterval"_qs, 30)
|
||||
, m_storeMaxArticlesPerFeed(u"RSS/Session/MaxArticlesPerFeed"_qs, 50)
|
||||
, m_workingThread(new QThread(this))
|
||||
{
|
||||
Q_ASSERT(!m_instance); // only one instance is allowed
|
||||
|
||||
Reference in New Issue
Block a user