From 69a6ddbd90e4b215d203d438803716202d672638 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Thu, 11 May 2023 14:39:32 +0300 Subject: [PATCH] fix #3968 Poco::Net::SocketConnector constructor should take SocketAddress by const reference --- Net/include/Poco/Net/SocketConnector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Net/include/Poco/Net/SocketConnector.h b/Net/include/Poco/Net/SocketConnector.h index 15d01e908..5da007664 100644 --- a/Net/include/Poco/Net/SocketConnector.h +++ b/Net/include/Poco/Net/SocketConnector.h @@ -73,14 +73,14 @@ class SocketConnector /// if special steps are necessary to create a ServiceHandler object. { public: - explicit SocketConnector(SocketAddress& address): + explicit SocketConnector(const SocketAddress& address): _pReactor(0) /// Creates a SocketConnector, using the given Socket. { _socket.connectNB(address); } - SocketConnector(SocketAddress& address, SocketReactor& reactor, bool doRegister = true) : + SocketConnector(const SocketAddress& address, SocketReactor& reactor, bool doRegister = true) : _pReactor(0) /// Creates an connector, using the given ServerSocket. /// The SocketConnector registers itself with the given SocketReactor.