diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
| commit | a9ab0c72a69cacc597e91870f50622de0334f9a7 (patch) | |
| tree | 57665546eb565fa608a203aca5f4ac65dc57a6f3 /modules/extra | |
| parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) | |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/m_ldap.cpp | 12 | ||||
| -rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_mysql.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_sqlite.cpp | 2 |
4 files changed, 9 insertions, 9 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); diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 87a6f8a51..0de029cdf 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -254,7 +254,7 @@ public: if (!this->ldap) return; - IdentifyInfo *ii = new IdentifyInfo(u, req, this->ldap); + auto *ii = new IdentifyInfo(u, req, this->ldap); this->ldap->BindAsAdmin(new IdentifyInterface(this, ii)); } diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 9d9496fc9..393085a41 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -239,7 +239,7 @@ public: try { - MySQLService *ss = new MySQLService(this, connname, database, server, user, password, port); + auto *ss = new MySQLService(this, connname, database, server, user, password, port); this->MySQLServices.emplace(connname, ss); Log(LOG_NORMAL, "mysql") << "MySQL: Successfully connected to server " << connname << " (" << server << ")"; diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp index d7e0bfeca..7abfc2f52 100644 --- a/modules/extra/m_sqlite.cpp +++ b/modules/extra/m_sqlite.cpp @@ -119,7 +119,7 @@ public: try { - SQLiteService *ss = new SQLiteService(this, connname, database); + auto *ss = new SQLiteService(this, connname, database); this->SQLiteServices[connname] = ss; Log(LOG_NORMAL, "sqlite") << "SQLite: Successfully added database " << database; |
