From 04f3ce9410fe73deea53a6c4412345d6ebfbc338 Mon Sep 17 00:00:00 2001 From: Lutz Bichler Date: Fri, 18 Oct 2024 11:56:50 +0200 Subject: [PATCH] Adapt signatures to fix compilation --- .../endpoints/include/local_uds_server_endpoint_impl.hpp | 2 +- implementation/endpoints/src/local_uds_server_endpoint_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/implementation/endpoints/include/local_uds_server_endpoint_impl.hpp b/implementation/endpoints/include/local_uds_server_endpoint_impl.hpp index a0d8bde1e..94c39bb7e 100644 --- a/implementation/endpoints/include/local_uds_server_endpoint_impl.hpp +++ b/implementation/endpoints/include/local_uds_server_endpoint_impl.hpp @@ -156,7 +156,7 @@ class local_uds_server_endpoint_impl: public local_uds_server_endpoint_base_impl bool add_connection(const client_t &_client, const std::shared_ptr &_connection); void remove_connection(const client_t &_client); - void accept_cbk(const connection::ptr& _connection, + void accept_cbk(connection::ptr _connection, boost::system::error_code const &_error); std::string get_remote_information( const target_data_iterator_type _queue_iterator) const; diff --git a/implementation/endpoints/src/local_uds_server_endpoint_impl.cpp b/implementation/endpoints/src/local_uds_server_endpoint_impl.cpp index 2717a6869..5b8560bdc 100644 --- a/implementation/endpoints/src/local_uds_server_endpoint_impl.cpp +++ b/implementation/endpoints/src/local_uds_server_endpoint_impl.cpp @@ -242,7 +242,7 @@ void local_uds_server_endpoint_impl::remove_connection( } void local_uds_server_endpoint_impl::accept_cbk( - const connection::ptr& _connection, boost::system::error_code const &_error) { + connection::ptr _connection, boost::system::error_code const &_error) { if (_error != boost::asio::error::bad_descriptor && _error != boost::asio::error::operation_aborted && _error != boost::asio::error::no_descriptors) {