From b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 23:02:45 +0000 Subject: Qualify auto correctly in all cases. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 2ffe82370..67c66d618 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -49,7 +49,7 @@ bool InspIRCd::BindPort(const std::shared_ptr& tag, const irc::socket } } - auto ll = new ListenSocket(tag, sa); + auto* ll = new ListenSocket(tag, sa); if (!ll->HasFd()) { ServerInstance->Logs.Normal("SOCKET", "Failed to listen on %s from tag at %s: %s", @@ -135,7 +135,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) } std::vector::iterator n = ports.begin(); - for (auto& old_port : old_ports) + for (auto* old_port : old_ports) { while (n != ports.end() && *n != old_port) n++; -- cgit v1.3.1-10-gc9f91