aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 20:57:56 +0000
committerGravatar Sadie Powell2023-01-10 21:27:18 +0000
commit1b2916c8451506adccf3ab0a56bbf836d9f3cb36 (patch)
tree8675a6bf6fdf97b0f7dba5449fe59f1f669986a2 /src/socket.cpp
parentFix calling the base Set/Unset implementation in ListExtItem. (diff)
Avoid copying shared_ptr<ConfigTag> when not necessary.
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index b3c9db6de..2ffe82370 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -32,7 +32,7 @@
#include "inspircd.h"
-bool InspIRCd::BindPort(std::shared_ptr<ConfigTag> tag, const irc::sockets::sockaddrs& sa, std::vector<ListenSocket*>& old_ports)
+bool InspIRCd::BindPort(const std::shared_ptr<ConfigTag>& tag, const irc::sockets::sockaddrs& sa, std::vector<ListenSocket*>& old_ports)
{
for (std::vector<ListenSocket*>::iterator n = old_ports.begin(); n != old_ports.end(); ++n)
{