aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /src/modules/extra
parentFix some unnecessary string copies. (diff)
downloadinspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.tar.gz
inspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.tar.bz2
inspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.zip
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_geo_maxmind.cpp2
-rw-r--r--src/modules/extra/m_ldap.cpp12
-rw-r--r--src/modules/extra/m_log_json.cpp2
-rw-r--r--src/modules/extra/m_mysql.cpp2
-rw-r--r--src/modules/extra/m_pgsql.cpp2
-rw-r--r--src/modules/extra/m_sqlite3.cpp2
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp4
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
8 files changed, 14 insertions, 14 deletions
diff --git a/src/modules/extra/m_geo_maxmind.cpp b/src/modules/extra/m_geo_maxmind.cpp
index 03dcc852f..3cc6ac5f4 100644
--- a/src/modules/extra/m_geo_maxmind.cpp
+++ b/src/modules/extra/m_geo_maxmind.cpp
@@ -139,7 +139,7 @@ public:
// Create a Location object and cache it.
const std::string cname(country_name.utf8_string, country_name.data_size);
- auto location = new Geolocation::Location(code, cname);
+ auto* location = new Geolocation::Location(code, cname);
locations[code] = location;
return location;
}
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp
index 99ba8dcd7..08e5f44bd 100644
--- a/src/modules/extra/m_ldap.cpp
+++ b/src/modules/extra/m_ldap.cpp
@@ -273,7 +273,7 @@ public:
for (unsigned int x = 0; x < attributes.size(); ++x)
{
const LDAPModification& l = attributes[x];
- auto mod = new LDAPMod();
+ auto* mod = new LDAPMod();
mods[x] = mod;
if (l.op == LDAPModification::LDAP_ADD)
@@ -369,7 +369,7 @@ public:
{
this->LockQueue();
- for (auto& req : this->queries)
+ for (auto* req : this->queries)
{
/* queries have no results yet */
req->result = new LDAPResult();
@@ -381,7 +381,7 @@ public:
}
this->queries.clear();
- for (auto& req : this->results)
+ for (auto* req : this->results)
{
/* even though this may have already finished successfully we return that it didn't */
req->result->error = "LDAP Interface is going away";
@@ -522,7 +522,7 @@ private:
return;
}
- for (auto& req : q)
+ for (auto* req : q)
{
int ret = req->run();
@@ -574,7 +574,7 @@ public:
this->results.swap(r);
this->UnlockQueue();
- for (auto& req : r)
+ for (auto* req : r)
{
LDAPInterface* li = req->inter;
LDAPResult* res = req->result;
@@ -615,7 +615,7 @@ public:
ServiceMap::iterator curr = LDAPServices.find(id);
if (curr == LDAPServices.end())
{
- auto conn = new LDAPService(this, tag);
+ auto* conn = new LDAPService(this, tag);
conns[id] = conn;
ServerInstance->Modules.AddService(*conn);
diff --git a/src/modules/extra/m_log_json.cpp b/src/modules/extra/m_log_json.cpp
index 3408fc82f..15320607a 100644
--- a/src/modules/extra/m_log_json.cpp
+++ b/src/modules/extra/m_log_json.cpp
@@ -138,7 +138,7 @@ public:
throw CoreException("<log:target> must be specified for JSON logger at " + tag->source.str());
const std::string fulltarget = ServerInstance->Config->Paths.PrependLog(InspIRCd::TimeString(ServerInstance->Time(), target.c_str()));
- auto fh = fopen(fulltarget.c_str(), "a");
+ auto* fh = fopen(fulltarget.c_str(), "a");
if (!fh)
{
throw CoreException(InspIRCd::Format("Unable to open %s for JSON logger at %s: %s",
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index 698a0aae8..cb24555f7 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -483,7 +483,7 @@ void ModuleSQL::ReadConfig(ConfigStatus& status)
ConnMap::iterator curr = connections.find(id);
if (curr == connections.end())
{
- auto conn = new SQLConnection(this, tag);
+ auto* conn = new SQLConnection(this, tag);
conns.emplace(id, conn);
ServerInstance->Modules.AddService(*conn);
}
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index d7cbf1308..50a9e428b 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -566,7 +566,7 @@ public:
ConnMap::iterator curr = connections.find(id);
if (curr == connections.end())
{
- auto conn = new SQLConn(this, tag);
+ auto* conn = new SQLConn(this, tag);
if (conn->status != DEAD)
{
conns.emplace(id, conn);
diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp
index 132e0dc64..2e1f4ae74 100644
--- a/src/modules/extra/m_sqlite3.cpp
+++ b/src/modules/extra/m_sqlite3.cpp
@@ -264,7 +264,7 @@ public:
if (!stdalgo::string::equalsci(tag->getString("module"), "sqlite"))
continue;
- auto conn = new SQLConn(this, tag);
+ auto* conn = new SQLConn(this, tag);
conns.emplace(tag->getString("id"), conn);
ServerInstance->Modules.AddService(*conn);
}
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index a0dc20561..175d6f92e 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -222,7 +222,7 @@ namespace GnuTLS
~X509CertList()
{
- for (const auto& cert : certs)
+ for (auto* cert : certs)
gnutls_x509_crt_deinit(cert);
}
@@ -660,7 +660,7 @@ private:
void VerifyCertificate()
{
- auto certinfo = new ssl_cert();
+ auto* certinfo = new ssl_cert();
this->certificate = certinfo;
unsigned int certstatus;
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index b03bf9f7f..df426850a 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -576,7 +576,7 @@ private:
void VerifyCertificate()
{
X509* cert;
- auto certinfo = new ssl_cert();
+ auto* certinfo = new ssl_cert();
this->certificate = certinfo;
unsigned int n;
unsigned char md[EVP_MAX_MD_SIZE];