Initialize member variables

This commit is contained in:
Chocobo1
2023-05-07 15:16:32 +08:00
parent 29c05ed3e8
commit 73134d5f4d
29 changed files with 49 additions and 64 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -103,7 +103,7 @@ namespace Net
struct DownloadResult
{
QString url;
DownloadStatus status;
DownloadStatus status = DownloadStatus::Failed;
QString errorString;
QByteArray data;
Path filePath;