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/m_connectban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_connectban.cpp') diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index 535702101..d6d844d7e 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -146,7 +146,7 @@ public: if (i->second >= threshold) { // Create Z-line for set duration. - ZLine* zl = new ZLine(ServerInstance->Time(), banduration, MODNAME "@" + ServerInstance->Config->ServerName, banmessage, mask.str()); + auto zl = new ZLine(ServerInstance->Time(), banduration, MODNAME "@" + ServerInstance->Config->ServerName, banmessage, mask.str()); if (!ServerInstance->XLines->AddLine(zl, nullptr)) { delete zl; -- cgit v1.3.1-10-gc9f91