From 7076a766db6759ac698fea880616ede9545207cc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Sep 2022 11:20:16 +0100 Subject: Use auto in places where it is really obvious what the type is. --- src/modules/extra/m_mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra/m_mysql.cpp') diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 51fdef06c..c8ffc33a2 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -474,7 +474,7 @@ void ModuleSQL::ReadConfig(ConfigStatus& status) ConnMap::iterator curr = connections.find(id); if (curr == connections.end()) { - SQLConnection* conn = new SQLConnection(this, tag); + auto conn = new SQLConnection(this, tag); conns.emplace(id, conn); ServerInstance->Modules.AddService(*conn); } -- cgit v1.3.1-10-gc9f91