summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-06 13:23:37 +0000
committerSadie Powell <sadie@witchery.services>2024-01-06 13:23:37 +0000
commita9ab0c72a69cacc597e91870f50622de0334f9a7 (patch)
tree57665546eb565fa608a203aca5f4ac65dc57a6f3 /modules/extra/m_ldap.cpp
parentde918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff)
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/extra/m_ldap.cpp')
-rw-r--r--modules/extra/m_ldap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index 19b5f881a..799e15c6a 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -350,7 +350,7 @@ public:
void Bind(LDAPInterface *i, const Anope::string &who, const Anope::string &pass) override
{
- LDAPBind *b = new LDAPBind(this, i, who, pass);
+ auto *b = new LDAPBind(this, i, who, pass);
QueueRequest(b);
}
@@ -359,25 +359,25 @@ public:
if (i == NULL)
throw LDAPException("No interface");
- LDAPSearchRequest *s = new LDAPSearchRequest(this, i, base, filter);
+ auto *s = new LDAPSearchRequest(this, i, base, filter);
QueueRequest(s);
}
void Add(LDAPInterface *i, const Anope::string &dn, LDAPMods &attributes) override
{
- LDAPAdd *add = new LDAPAdd(this, i, dn, attributes);
+ auto *add = new LDAPAdd(this, i, dn, attributes);
QueueRequest(add);
}
void Del(LDAPInterface *i, const Anope::string &dn) override
{
- LDAPDel *del = new LDAPDel(this, i, dn);
+ auto *del = new LDAPDel(this, i, dn);
QueueRequest(del);
}
void Modify(LDAPInterface *i, const Anope::string &base, LDAPMods &attributes) override
{
- LDAPModify *mod = new LDAPModify(this, i, base, attributes);
+ auto *mod = new LDAPModify(this, i, base, attributes);
QueueRequest(mod);
}
@@ -566,7 +566,7 @@ public:
try
{
- LDAPService *ss = new LDAPService(this, connname, server, admin_binddn, admin_password);
+ auto *ss = new LDAPService(this, connname, server, admin_binddn, admin_password);
ss->Start();
this->LDAPServices.emplace(connname, ss);