aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ldapauth.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_ldapauth.cpp
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_ldapauth.cpp')
-rw-r--r--src/modules/m_ldapauth.cpp10
1 files changed, 6 insertions, 4 deletions
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<std::string, std::string>& 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)
{
}