diff options
author | louiz’ <louiz@louiz.org> | 2017-03-08 19:04:15 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-03-08 19:04:15 +0100 |
commit | f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5 (patch) | |
tree | c9df36ef6781dfa56d2a3fee5b68390aa1e9ceb5 /louloulibs/network/tcp_socket_handler.cpp | |
parent | cd92baae3f0de8b841b5bbfdb02e4fa95acd52c1 (diff) | |
download | biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.gz biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.bz2 biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.tar.xz biboumi-f0bc6c83a8eb548d0a3edbf7c16a6922bfd24ba5.zip |
Pass the shared_ptr by reference, to avoid useless copies
Diffstat (limited to 'louloulibs/network/tcp_socket_handler.cpp')
-rw-r--r-- | louloulibs/network/tcp_socket_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp index 6aef2b1..7eebae0 100644 --- a/louloulibs/network/tcp_socket_handler.cpp +++ b/louloulibs/network/tcp_socket_handler.cpp @@ -44,7 +44,7 @@ using namespace std::chrono_literals; namespace ph = std::placeholders; -TCPSocketHandler::TCPSocketHandler(std::shared_ptr<Poller> poller): +TCPSocketHandler::TCPSocketHandler(std::shared_ptr<Poller>& poller): SocketHandler(poller, -1), use_tls(false) #ifdef BOTAN_FOUND |