prefer member init
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 3 Feb 2023 16:32:40 +0000 (17:32 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 6 Feb 2023 10:55:08 +0000 (10:55 +0000)
done via clang-tidy and use of modernize-use-default-member-init

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/cmd/cmd.cpp

index cdc58391114e99eca63804fa852077e965347ee6..3826a681bd37f2b04ab31147b2c1be52658dae46 100644 (file)
@@ -137,8 +137,6 @@ class HttpCredentialsText : public HttpCredentials
 public:
     HttpCredentialsText(const QString &user, const QString &password)
         : HttpCredentials(user, password)
-        , // FIXME: not working with client certs yet (qknight)
-        _sslTrusted(false)
     {
     }
 
@@ -161,7 +159,8 @@ public:
     }
 
 private:
-    bool _sslTrusted;
+    // FIXME: not working with client certs yet (qknight)
+    bool _sslTrusted{false};
 };
 #endif /* TOKEN_AUTH_ONLY */