mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 13:18:06 -06:00
Initialize member variables
This commit is contained in:
@@ -44,8 +44,6 @@ const std::chrono::seconds IP_CHECK_INTERVAL = 30min;
|
||||
|
||||
DNSUpdater::DNSUpdater(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_state(OK)
|
||||
, m_service(DNS::Service::None)
|
||||
{
|
||||
updateCredentials();
|
||||
|
||||
|
||||
@@ -74,9 +74,9 @@ namespace Net
|
||||
QHostAddress m_lastIP;
|
||||
QDateTime m_lastIPCheckTime;
|
||||
QTimer m_ipCheckTimer;
|
||||
int m_state;
|
||||
int m_state = OK;
|
||||
// Service creds
|
||||
DNS::Service m_service;
|
||||
DNS::Service m_service = DNS::Service::None;
|
||||
QString m_domain;
|
||||
QString m_username;
|
||||
QString m_password;
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace Net
|
||||
struct DownloadResult
|
||||
{
|
||||
QString url;
|
||||
DownloadStatus status;
|
||||
DownloadStatus status = DownloadStatus::Failed;
|
||||
QString errorString;
|
||||
QByteArray data;
|
||||
Path filePath;
|
||||
|
||||
Reference in New Issue
Block a user