diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-04 14:59:37 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-06-04 14:59:48 -0700 |
commit | cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9 (patch) | |
tree | 030fa871567ccdcbc839325afc9cc533df2e981e /launcher/net | |
parent | 7e0e1ec51dfbcd49204f8e8e7e82b72c9931db11 (diff) | |
download | PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.gz PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.bz2 PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.zip |
chore: clean up after new compiler warnings
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/net')
-rw-r--r-- | launcher/net/Download.h | 2 | ||||
-rw-r--r-- | launcher/net/HttpMetaCache.h | 2 | ||||
-rw-r--r-- | launcher/net/NetAction.h | 6 | ||||
-rw-r--r-- | launcher/net/Validator.h | 5 |
4 files changed, 8 insertions, 7 deletions
diff --git a/launcher/net/Download.h b/launcher/net/Download.h index 920164a3..afa0eb5c 100644 --- a/launcher/net/Download.h +++ b/launcher/net/Download.h @@ -66,7 +66,7 @@ class Download : public NetAction { public: void addValidator(Validator* v); auto abort() -> bool override; - auto canAbort() const -> bool override { return true; }; + auto canAbort() const -> bool override { return true; } private: auto handleRedirect() -> bool; diff --git a/launcher/net/HttpMetaCache.h b/launcher/net/HttpMetaCache.h index 0dcb5668..036a8dd9 100644 --- a/launcher/net/HttpMetaCache.h +++ b/launcher/net/HttpMetaCache.h @@ -74,7 +74,7 @@ class MetaEntry { auto getMaximumAge() -> qint64 { return m_max_age; } void setMaximumAge(qint64 age) { m_max_age = age; } - bool isExpired(qint64 offset) { return !m_is_eternal && (m_current_age >= m_max_age - offset); }; + bool isExpired(qint64 offset) { return !m_is_eternal && (m_current_age >= m_max_age - offset); } protected: QString m_baseId; diff --git a/launcher/net/NetAction.h b/launcher/net/NetAction.h index ab9322c2..c22eaf9f 100644 --- a/launcher/net/NetAction.h +++ b/launcher/net/NetAction.h @@ -45,7 +45,7 @@ class NetAction : public Task { Q_OBJECT protected: - explicit NetAction() : Task(){}; + explicit NetAction() : Task(){} public: using Ptr = shared_qobject_ptr<NetAction>; @@ -71,7 +71,7 @@ class NetAction : public Task { i++; } - }; + } public slots: void startAction(shared_qobject_ptr<QNetworkAccessManager> network) @@ -81,7 +81,7 @@ class NetAction : public Task { } protected: - void executeTask() override{}; + void executeTask() override{} public: shared_qobject_ptr<QNetworkAccessManager> m_network; diff --git a/launcher/net/Validator.h b/launcher/net/Validator.h index 6b3d4635..c8ce7922 100644 --- a/launcher/net/Validator.h +++ b/launcher/net/Validator.h @@ -40,8 +40,9 @@ namespace Net { class Validator { public: /* con/des */ - Validator() {}; - virtual ~Validator() {}; + Validator() {} + + virtual ~Validator() {} public: /* methods */ virtual bool init(QNetworkRequest & request) = 0; |