From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/modules/m_sasl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/m_sasl.cpp') diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 3fbffd07e..df67a0037 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -174,9 +174,9 @@ class SaslAuthenticator private: std::string agent; LocalUser* user; - SaslState state; + SaslState state = SASL_INIT; SaslResult result; - bool state_announced; + bool state_announced = false; void SendHostIP(UserCertificateAPI& sslapi) { @@ -191,8 +191,6 @@ class SaslAuthenticator public: SaslAuthenticator(LocalUser* user_, const std::string& method, UserCertificateAPI& sslapi) : user(user_) - , state(SASL_INIT) - , state_announced(false) { SendHostIP(sslapi); -- cgit v1.3.1-10-gc9f91