diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_sasl.cpp | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
| download | inspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.tar.gz inspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.tar.bz2 inspircd++-98e4ddfb21d285c8b675788c155bb204822fbd4a.zip | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_sasl.cpp')
| -rw-r--r-- | src/modules/m_sasl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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); |
