From ef24ec632da12f272eddcf9924eacde9260597a2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 1 Apr 2021 18:10:11 +0100 Subject: Constify variables within loops. --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 4f1c164b1..4e408ec33 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -65,7 +65,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) size_t bound = 0; std::vector old_ports(ports.begin(), ports.end()); - for (auto& [_, tag] : ServerInstance->Config->ConfTags("bind")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("bind")) { // Are we creating a TCP/IP listener? const std::string address = tag->getString("address"); -- cgit v1.3.1-10-gc9f91