summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/commands/bs_badwords.cpp2
-rw-r--r--modules/commands/bs_bot.cpp2
-rw-r--r--modules/commands/cs_entrymsg.cpp2
-rw-r--r--modules/commands/cs_log.cpp4
-rw-r--r--modules/commands/cs_mode.cpp2
-rw-r--r--modules/commands/ns_ajoin.cpp2
-rw-r--r--modules/commands/ns_group.cpp4
-rw-r--r--modules/commands/ns_identify.cpp2
-rw-r--r--modules/commands/ns_recover.cpp2
-rw-r--r--modules/commands/ns_register.cpp4
-rw-r--r--modules/commands/os_akill.cpp2
-rw-r--r--modules/commands/os_chankill.cpp2
-rw-r--r--modules/commands/os_ignore.cpp2
-rw-r--r--modules/commands/os_jupe.cpp2
-rw-r--r--modules/commands/os_reload.cpp2
-rw-r--r--modules/commands/os_session.cpp4
-rw-r--r--modules/commands/os_sxline.cpp4
-rw-r--r--modules/database/db_old.cpp20
-rw-r--r--modules/extra/m_ldap.cpp12
-rw-r--r--modules/extra/m_ldap_authentication.cpp2
-rw-r--r--modules/extra/m_mysql.cpp2
-rw-r--r--modules/extra/m_sqlite.cpp2
-rw-r--r--modules/m_dns.cpp6
-rw-r--r--modules/m_dnsbl.cpp2
-rw-r--r--modules/m_httpd.cpp2
-rw-r--r--modules/m_proxyscan.cpp2
-rw-r--r--modules/m_redis.cpp2
-rw-r--r--modules/m_xmlrpc_main.cpp2
-rw-r--r--modules/protocol/hybrid.cpp2
-rw-r--r--modules/protocol/unrealircd.cpp2
-rw-r--r--modules/pseudoclients/memoserv.cpp2
-rw-r--r--modules/webcpanel/pages/index.cpp2
-rw-r--r--src/channels.cpp2
-rw-r--r--src/config.cpp4
-rw-r--r--src/init.cpp2
-rw-r--r--src/logger.cpp2
-rw-r--r--src/modes.cpp2
-rw-r--r--src/regchannel.cpp4
-rw-r--r--src/win32/pthread/pthread.cpp2
39 files changed, 62 insertions, 62 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp
index f44ea1b90..82e4e20b3 100644
--- a/modules/commands/bs_badwords.cpp
+++ b/modules/commands/bs_badwords.cpp
@@ -39,7 +39,7 @@ struct BadWordsImpl : BadWords
BadWord* AddBadWord(const Anope::string &word, BadWordType type) override
{
- BadWordImpl *bw = new BadWordImpl();
+ auto *bw = new BadWordImpl();
bw->chan = ci->name;
bw->word = word;
bw->type = type;
diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp
index 807ea5ce3..6499e3baa 100644
--- a/modules/commands/bs_bot.cpp
+++ b/modules/commands/bs_bot.cpp
@@ -82,7 +82,7 @@ private:
return;
}
- BotInfo *bi = new BotInfo(nick, user, host, real);
+ auto *bi = new BotInfo(nick, user, host, real);
Log(LOG_ADMIN, source, this) << "ADD " << bi->GetMask() << " " << bi->realname;
diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp
index 7ed117b93..2659428a4 100644
--- a/modules/commands/cs_entrymsg.cpp
+++ b/modules/commands/cs_entrymsg.cpp
@@ -92,7 +92,7 @@ Serializable* EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data
data["when"] >> swhen;
- EntryMsgImpl *m = new EntryMsgImpl(ci, screator, smessage, swhen);
+ auto *m = new EntryMsgImpl(ci, screator, smessage, swhen);
(*messages)->push_back(m);
return m;
}
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp
index 9daf22534..b955255f4 100644
--- a/modules/commands/cs_log.cpp
+++ b/modules/commands/cs_log.cpp
@@ -232,7 +232,7 @@ public:
}
}
- LogSetting *log = new LogSettingImpl();
+ auto *log = new LogSettingImpl();
log->chan = ci->name;
log->service_name = service_name;
if (bi)
@@ -330,7 +330,7 @@ public:
LogSettings *ls = logsettings.Require(ci);
for (auto &d : defaults)
{
- LogSetting *log = new LogSettingImpl();
+ auto *log = new LogSettingImpl();
log->chan = ci->name;
if (!d.service.empty())
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index cfdb748c0..27cd08fcb 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -76,7 +76,7 @@ struct ModeLocksImpl : ModeLocks
if (setter.empty())
setter = ci->GetFounder() ? ci->GetFounder()->display : "Unknown";
- ModeLock *ml = new ModeLockImpl();
+ auto *ml = new ModeLockImpl();
ml->ci = ci->name;
ml->set = status;
ml->name = mode->name;
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp
index f5c48b9aa..9b63d6576 100644
--- a/modules/commands/ns_ajoin.cpp
+++ b/modules/commands/ns_ajoin.cpp
@@ -155,7 +155,7 @@ class CommandNSAJoin : public Command
continue;
}
- AJoinEntry *entry = new AJoinEntry(nc);
+ auto *entry = new AJoinEntry(nc);
entry->owner = nc;
entry->channel = chan;
entry->key = key;
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp
index 2d00ead02..fd735d506 100644
--- a/modules/commands/ns_group.cpp
+++ b/modules/commands/ns_group.cpp
@@ -178,7 +178,7 @@ public:
if (ok == false && !pass.empty())
{
- NSGroupRequest *req = new NSGroupRequest(owner, source, this, source.GetNick(), target, pass);
+ auto *req = new NSGroupRequest(owner, source, this, source.GetNick(), target, pass);
FOREACH_MOD(OnCheckAuthentication, (source.GetUser(), req));
req->Dispatch();
}
@@ -259,7 +259,7 @@ public:
if (na->nick.equals_ci(oldcore->display))
oldcore->SetDisplay(oldcore->aliases->front());
- NickCore *nc = new NickCore(na->nick);
+ auto *nc = new NickCore(na->nick);
na->nc = nc;
nc->aliases->push_back(na);
diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp
index fbcdff5fa..ebe8fbfe1 100644
--- a/modules/commands/ns_identify.cpp
+++ b/modules/commands/ns_identify.cpp
@@ -95,7 +95,7 @@ public:
return;
}
- NSIdentifyRequest *req = new NSIdentifyRequest(owner, source, this, na ? na->nc->display : nick, pass);
+ auto *req = new NSIdentifyRequest(owner, source, this, na ? na->nc->display : nick, pass);
FOREACH_MOD(OnCheckAuthentication, (u, req));
req->Dispatch();
}
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp
index fa70cd1ec..7836949a6 100644
--- a/modules/commands/ns_recover.cpp
+++ b/modules/commands/ns_recover.cpp
@@ -192,7 +192,7 @@ public:
if (ok == false && !pass.empty())
{
- NSRecoverRequest *req = new NSRecoverRequest(owner, source, this, na->nick, pass);
+ auto *req = new NSRecoverRequest(owner, source, this, na->nick, pass);
FOREACH_MOD(OnCheckAuthentication, (source.GetUser(), req));
req->Dispatch();
}
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index 18a965999..7fdca9d03 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -211,8 +211,8 @@ public:
source.Reply(MAIL_X_INVALID, email.c_str());
else
{
- NickCore *nc = new NickCore(u_nick);
- NickAlias *na = new NickAlias(u_nick, nc);
+ auto *nc = new NickCore(u_nick);
+ auto *na = new NickAlias(u_nick, nc);
Anope::Encrypt(pass, nc->pass);
if (!email.empty())
nc->email = email;
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp
index 01310444b..57adea53e 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -167,7 +167,7 @@ private:
return;
}
- XLine *x = new XLine(mask, source.GetNick(), expires, reason);
+ auto *x = new XLine(mask, source.GetNick(), expires, reason);
if (Config->GetModule("operserv")->Get<bool>("akillids"))
x->id = XLineManager::GenerateUID();
diff --git a/modules/commands/os_chankill.cpp b/modules/commands/os_chankill.cpp
index bc31a2180..e27929143 100644
--- a/modules/commands/os_chankill.cpp
+++ b/modules/commands/os_chankill.cpp
@@ -78,7 +78,7 @@ public:
if (akills->HasEntry(akillmask))
continue;
- XLine *x = new XLine(akillmask, source.GetNick(), expires, realreason, XLineManager::GenerateUID());
+ auto *x = new XLine(akillmask, source.GetNick(), expires, realreason, XLineManager::GenerateUID());
akills->AddXLine(x);
akills->OnMatch(uc->user, x);
}
diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp
index 774034c64..3fe820bce 100644
--- a/modules/commands/os_ignore.cpp
+++ b/modules/commands/os_ignore.cpp
@@ -221,7 +221,7 @@ private:
if (Anope::ReadOnly)
source.Reply(READ_ONLY_MODE);
- IgnoreData *ign = new IgnoreDataImpl();
+ auto *ign = new IgnoreDataImpl();
ign->mask = mask;
ign->creator = source.GetNick();
ign->reason = reason;
diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp
index 33757153f..7e2189708 100644
--- a/modules/commands/os_jupe.cpp
+++ b/modules/commands/os_jupe.cpp
@@ -42,7 +42,7 @@ public:
IRCD->SendSquit(server, rbuf);
server->Delete(rbuf);
}
- Server *juped_server = new Server(Me, jserver, 1, rbuf, sid, true);
+ auto *juped_server = new Server(Me, jserver, 1, rbuf, sid, true);
IRCD->SendServer(juped_server);
Log(LOG_ADMIN, source, this) << "on " << jserver << " (" << rbuf << ")";
diff --git a/modules/commands/os_reload.cpp b/modules/commands/os_reload.cpp
index 9d173779f..d364aeb88 100644
--- a/modules/commands/os_reload.cpp
+++ b/modules/commands/os_reload.cpp
@@ -25,7 +25,7 @@ public:
{
Log(LOG_ADMIN, source, this);
- Configuration::Conf *new_config = new Configuration::Conf();
+ auto *new_config = new Configuration::Conf();
Configuration::Conf *old = Config;
Config = new_config;
Config->Post(old);
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp
index b61babff8..c04f507e4 100644
--- a/modules/commands/os_session.cpp
+++ b/modules/commands/os_session.cpp
@@ -358,7 +358,7 @@ private:
}
}
- Exception *exception = new Exception();
+ auto *exception = new Exception();
exception->mask = mask;
exception->limit = limit;
exception->reason = reason;
@@ -671,7 +671,7 @@ public:
const Anope::string &akillmask = "*@" + session->addr.mask();
if (max_session_kill && session->hits >= max_session_kill && akills && !akills->HasEntry(akillmask))
{
- XLine *x = new XLine(akillmask, OperServ ? OperServ->nick : "", Anope::CurTime + session_autokill_expiry, "Session limit exceeded", XLineManager::GenerateUID());
+ auto *x = new XLine(akillmask, OperServ ? OperServ->nick : "", Anope::CurTime + session_autokill_expiry, "Session limit exceeded", XLineManager::GenerateUID());
akills->AddXLine(x);
akills->Send(NULL, x);
Log(OperServ, "akill/session") << "Added a temporary AKILL for \002" << akillmask << "\002 due to excessive connections";
diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp
index c15ae9af5..6a0fcae9e 100644
--- a/modules/commands/os_sxline.cpp
+++ b/modules/commands/os_sxline.cpp
@@ -366,7 +366,7 @@ class CommandOSSNLine : public CommandOSSXLineBase
return;
}
- XLine *x = new XLine(mask, source.GetNick(), expires, reason);
+ auto *x = new XLine(mask, source.GetNick(), expires, reason);
if (Config->GetModule("operserv")->Get<bool>("akillids"))
x->id = XLineManager::GenerateUID();
@@ -572,7 +572,7 @@ class CommandOSSQLine : public CommandOSSXLineBase
return;
}
- XLine *x = new XLine(mask, source.GetNick(), expires, reason);
+ auto *x = new XLine(mask, source.GetNick(), expires, reason);
if (Config->GetModule("operserv")->Get<bool>("akillids"))
x->id = XLineManager::GenerateUID();
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp
index 591c1688c..fb8d57fbb 100644
--- a/modules/database/db_old.cpp
+++ b/modules/database/db_old.cpp
@@ -392,7 +392,7 @@ static int read_string(Anope::string &str, dbFILE *f)
return -1;
if (len == 0)
return 0;
- char *s = new char[len];
+ auto *s = new char[len];
if (len != fread(s, 1, len, f->fp))
{
delete [] s;
@@ -447,7 +447,7 @@ static void LoadNicks()
Anope::string buffer;
READ(read_string(buffer, f));
- NickCore *nc = new NickCore(buffer);
+ auto *nc = new NickCore(buffer);
const Anope::string settings[] = { "killprotect", "kill_quick", "ns_secure", "ns_private", "hide_email",
"hide_mask", "hide_quit", "memo_signon", "memo_receive", "autoop", "msg", "ns_keepmodes" };
@@ -579,7 +579,7 @@ static void LoadNicks()
READ(read_int16(&nc->memos.memomax, f));
for (int16_t j = 0; j < i16; ++j)
{
- Memo *m = new Memo;
+ auto *m = new Memo;
READ(read_uint32(&u32, f));
uint16_t flags;
READ(read_uint16(&flags, f));
@@ -655,7 +655,7 @@ static void LoadNicks()
continue;
}
- NickAlias *na = new NickAlias(nick, nc);
+ auto *na = new NickAlias(nick, nc);
na->last_usermask = last_usermask;
na->last_realname = last_realname;
na->last_quit = last_quit;
@@ -750,7 +750,7 @@ static void LoadChannels()
Anope::string buffer;
char namebuf[64];
READ(read_buffer(namebuf, f));
- ChannelInfo *ci = new ChannelInfo(namebuf);
+ auto *ci = new ChannelInfo(namebuf);
const Anope::string settings[] = { "keeptopic", "peace", "cs_private", "restricted", "cs_secure", "secureops", "securefounder",
"signkick", "signkick_level", "topiclock", "persist", "noautoop", "cs_keepmodes" };
@@ -950,7 +950,7 @@ static void LoadChannels()
{
READ(read_uint32(&tmpu32, f));
READ(read_uint16(&tmpu16, f));
- Memo *m = new Memo;
+ auto *m = new Memo;
READ(read_int32(&tmp32, f));
m->time = tmp32;
char sbuf[32];
@@ -1139,7 +1139,7 @@ static void LoadOper()
if (!akill)
continue;
- XLine *x = new XLine(user + "@" + host, by, expires, reason, XLineManager::GenerateUID());
+ auto *x = new XLine(user + "@" + host, by, expires, reason, XLineManager::GenerateUID());
x->created = seton;
akill->AddXLine(x);
}
@@ -1159,7 +1159,7 @@ static void LoadOper()
if (!snline)
continue;
- XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
+ auto *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
x->created = seton;
snline->AddXLine(x);
}
@@ -1179,7 +1179,7 @@ static void LoadOper()
if (!sqline)
continue;
- XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
+ auto *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
x->created = seton;
sqline->AddXLine(x);
}
@@ -1199,7 +1199,7 @@ static void LoadOper()
if (!szline)
continue;
- XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
+ auto *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID());
x->created = seton;
szline->AddXLine(x);
}
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;
diff --git a/modules/m_dns.cpp b/modules/m_dns.cpp
index a699d8539..47f6a5a3f 100644
--- a/modules/m_dns.cpp
+++ b/modules/m_dns.cpp
@@ -749,7 +749,7 @@ public:
req->SetSecs(timeout);
- Packet *p = new Packet(this, &this->addrs);
+ auto *p = new Packet(this, &this->addrs);
p->flags = QUERYFLAGS_RD;
p->id = req->id;
p->questions.push_back(*req);
@@ -789,7 +789,7 @@ public:
return true;
}
- Packet *packet = new Packet(recv_packet);
+ auto *packet = new Packet(recv_packet);
packet->flags |= QUERYFLAGS_QR; /* This is a response */
packet->flags |= QUERYFLAGS_AA; /* And we are authoritative */
@@ -928,7 +928,7 @@ public:
if (!addr.valid())
return;
- Packet *packet = new Packet(this, &addr);
+ auto *packet = new Packet(this, &addr);
packet->flags = QUERYFLAGS_AA | QUERYFLAGS_OPCODE_NOTIFY;
try
{
diff --git a/modules/m_dnsbl.cpp b/modules/m_dnsbl.cpp
index 2719b3fa7..bf36c34c2 100644
--- a/modules/m_dnsbl.cpp
+++ b/modules/m_dnsbl.cpp
@@ -80,7 +80,7 @@ public:
BotInfo *OperServ = Config->GetClient("OperServ");
Log(creator, "dnsbl", OperServ) << user->GetMask() << " (" << addr << ") appears in " << this->blacklist.name;
- XLine *x = new XLine("*@" + addr, OperServ ? OperServ->nick : "m_dnsbl", Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID());
+ auto *x = new XLine("*@" + addr, OperServ ? OperServ->nick : "m_dnsbl", Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID());
if (this->add_to_akill && akills)
{
akills->AddXLine(x);
diff --git a/modules/m_httpd.cpp b/modules/m_httpd.cpp
index 50d7220bf..fa9f03823 100644
--- a/modules/m_httpd.cpp
+++ b/modules/m_httpd.cpp
@@ -306,7 +306,7 @@ public:
ClientSocket* OnAccept(int fd, const sockaddrs &addr) override
{
- MyHTTPClient *c = new MyHTTPClient(this, fd, addr);
+ auto *c = new MyHTTPClient(this, fd, addr);
this->clients.emplace_back(c);
return c;
}
diff --git a/modules/m_proxyscan.cpp b/modules/m_proxyscan.cpp
index ffca85f8c..e99b40751 100644
--- a/modules/m_proxyscan.cpp
+++ b/modules/m_proxyscan.cpp
@@ -88,7 +88,7 @@ protected:
BotInfo *OperServ = Config->GetClient("OperServ");
Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.str() << " (" << reason << ")";
- XLine *x = new XLine("*@" + this->conaddr.addr(), OperServ ? OperServ->nick : "", Anope::CurTime + this->proxy.duration, reason, XLineManager::GenerateUID());
+ auto *x = new XLine("*@" + this->conaddr.addr(), OperServ ? OperServ->nick : "", Anope::CurTime + this->proxy.duration, reason, XLineManager::GenerateUID());
if (add_to_akill && akills)
{
akills->AddXLine(x);
diff --git a/modules/m_redis.cpp b/modules/m_redis.cpp
index ab81d4610..7e8f1dad3 100644
--- a/modules/m_redis.cpp
+++ b/modules/m_redis.cpp
@@ -402,7 +402,7 @@ size_t RedisSocket::ParseReply(Reply &r, const char *buffer, size_t l)
for (int i = r.multi_bulk.size(); i < r.multi_bulk_size; ++i)
{
- Reply *reply = new Reply();
+ auto *reply = new Reply();
size_t u = ParseReply(*reply, buffer + used, l - used);
if (!u)
{
diff --git a/modules/m_xmlrpc_main.cpp b/modules/m_xmlrpc_main.cpp
index f31f6a0d9..3f7ab71d0 100644
--- a/modules/m_xmlrpc_main.cpp
+++ b/modules/m_xmlrpc_main.cpp
@@ -127,7 +127,7 @@ private:
request.reply("error", "Invalid parameters");
else
{
- XMLRPCIdentifyRequest *req = new XMLRPCIdentifyRequest(me, request, client, iface, username, password);
+ auto *req = new XMLRPCIdentifyRequest(me, request, client, iface, username, password);
FOREACH_MOD(OnCheckAuthentication, (NULL, req));
req->Dispatch();
return false;
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp
index c02d19b67..44d39b5e9 100644
--- a/modules/protocol/hybrid.cpp
+++ b/modules/protocol/hybrid.cpp
@@ -150,7 +150,7 @@ public:
return;
/* We can't akill x as it has a nick and/or realname included, so create a new akill for *@host */
- XLine *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id);
+ auto *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id);
old->manager->AddXLine(xline);
x = xline;
diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp
index dcc105733..f506662fb 100644
--- a/modules/protocol/unrealircd.cpp
+++ b/modules/protocol/unrealircd.cpp
@@ -106,7 +106,7 @@ private:
return;
/* We can't akill x as it has a nick and/or realname included, so create a new akill for *@host */
- XLine *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id);
+ auto *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id);
old->manager->AddXLine(xline);
x = xline;
diff --git a/modules/pseudoclients/memoserv.cpp b/modules/pseudoclients/memoserv.cpp
index c62db294d..4ef8a32be 100644
--- a/modules/pseudoclients/memoserv.cpp
+++ b/modules/pseudoclients/memoserv.cpp
@@ -77,7 +77,7 @@ public:
if (sender != NULL)
sender->lastmemosend = Anope::CurTime;
- Memo *m = new Memo();
+ auto *m = new Memo();
m->mi = mi;
mi->memos->push_back(m);
m->owner = target;
diff --git a/modules/webcpanel/pages/index.cpp b/modules/webcpanel/pages/index.cpp
index b80173f45..bb83aba61 100644
--- a/modules/webcpanel/pages/index.cpp
+++ b/modules/webcpanel/pages/index.cpp
@@ -125,7 +125,7 @@ bool WebCPanel::Index::OnRequest(HTTPProvider *server, const Anope::string &page
last_login_attempt[ip] = Anope::CurTime;
- WebpanelRequest *req = new WebpanelRequest(me, reply, message, server, page_name, client, replacements, user, pass);
+ auto *req = new WebpanelRequest(me, reply, message, server, page_name, client, replacements, user, pass);
FOREACH_MOD(OnCheckAuthentication, (NULL, req));
req->Dispatch();
return false;
diff --git a/src/channels.cpp b/src/channels.cpp
index 2888e56a2..962debf56 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -142,7 +142,7 @@ ChanUserContainer* Channel::JoinUser(User *user, const ChannelStatus *status)
if (user->server && user->server->IsSynced())
Log(user, this, "join");
- ChanUserContainer *cuc = new ChanUserContainer(user, this);
+ auto *cuc = new ChanUserContainer(user, this);
user->chans[this] = cuc;
this->users[user] = cuc;
if (status)
diff --git a/src/config.cpp b/src/config.cpp
index df0338de1..c3e27d469 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -261,7 +261,7 @@ Conf::Conf() : Block("")
ValidateNotEmpty("opertype", "name", oname);
- OperType *ot = new OperType(oname);
+ auto *ot = new OperType(oname);
ot->modes = modes;
spacesepstream cmdstr(commands);
@@ -316,7 +316,7 @@ Conf::Conf() : Block("")
if (ot == NULL)
throw ConfigException("Oper block for " + nname + " has invalid oper type " + type);
- Oper *o = new Oper(nname, ot);
+ auto *o = new Oper(nname, ot);
o->require_oper = require_oper;
o->password = password;
o->certfp = certfp;
diff --git a/src/init.cpp b/src/init.cpp
index 0e14876d2..d3d1df56f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -131,7 +131,7 @@ void Anope::HandleSignal()
try
{
- Configuration::Conf *new_config = new Configuration::Conf();
+ auto *new_config = new Configuration::Conf();
Configuration::Conf *old = Config;
Config = new_config;
Config->Post(old);
diff --git a/src/logger.cpp b/src/logger.cpp
index c50545365..ebd14c0eb 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -312,7 +312,7 @@ void LogInfo::OpenLogFiles()
if (target.empty() || target[0] == '#' || target == "globops" || target.find(":") != Anope::string::npos)
continue;
- LogFile *lf = new LogFile(CreateLogName(target));
+ auto *lf = new LogFile(CreateLogName(target));
if (!lf->stream.is_open())
{
Log() << "Unable to open logfile " << lf->GetName();
diff --git a/src/modes.cpp b/src/modes.cpp
index 1bae2dfe1..fa416cba5 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -320,7 +320,7 @@ static StackerInfo *GetInfo(List &l, Object *o)
if (it != l.end())
return it->second;
- StackerInfo *s = new StackerInfo();
+ auto *s = new StackerInfo();
l[o] = s;
return s;
}
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 42d66f5db..912a3e5b2 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -525,7 +525,7 @@ void ChannelInfo::ClearAccess()
AutoKick *ChannelInfo::AddAkick(const Anope::string &user, NickCore *akicknc, const Anope::string &reason, time_t t, time_t lu)
{
- AutoKick *autokick = new AutoKick();
+ auto *autokick = new AutoKick();
autokick->ci = this;
autokick->nc = akicknc;
autokick->reason = reason;
@@ -542,7 +542,7 @@ AutoKick *ChannelInfo::AddAkick(const Anope::string &user, NickCore *akicknc, co
AutoKick *ChannelInfo::AddAkick(const Anope::string &user, const Anope::string &mask, const Anope::string &reason, time_t t, time_t lu)
{
- AutoKick *autokick = new AutoKick();
+ auto *autokick = new AutoKick();
autokick->ci = this;
autokick->mask = mask;
autokick->nc = NULL;
diff --git a/src/win32/pthread/pthread.cpp b/src/win32/pthread/pthread.cpp
index 7b705c9d6..237f29dd4 100644
--- a/src/win32/pthread/pthread.cpp
+++ b/src/win32/pthread/pthread.cpp
@@ -36,7 +36,7 @@ int pthread_attr_setdetachstate(pthread_attr_t *, int)
int pthread_create(pthread_t *thread, const pthread_attr_t *, void *(*entry)(void *), void *param)
{
- ThreadInfo *ti = new ThreadInfo;
+ auto *ti = new ThreadInfo;
ti->entry = entry;
ti->param = param;