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_ldapauth.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/modules/m_ldapauth.cpp') diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index 6275dc140..089f428b7 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -40,9 +40,9 @@ class BindInterface : public LDAPInterface const std::string provider; const std::string uid; std::string DN; - bool checkingAttributes; - bool passed; - int attrCount; + bool checkingAttributes = false; + bool passed = false; + int attrCount = 0; static std::string SafeReplace(const std::string& text, std::map& replacements) { @@ -100,7 +100,9 @@ class BindInterface : public LDAPInterface public: BindInterface(Module* c, const std::string& p, const std::string& u, const std::string& dn) : LDAPInterface(c) - , provider(p), uid(u), DN(dn), checkingAttributes(false), passed(false), attrCount(0) + , provider(p) + , uid(u) + , DN(dn) { } -- cgit v1.3.1-10-gc9f91