From 1744130b72ee53795dd0c6cac4a5ee046d57ef84 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Wed, 18 Nov 2020 08:53:55 +0100 Subject: [PATCH] Avoid copy of ParticipantAttributes Signed-off-by: Miguel Company --- rmw_fastrtps_shared_cpp/src/participant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_fastrtps_shared_cpp/src/participant.cpp b/rmw_fastrtps_shared_cpp/src/participant.cpp index 491c96c7c..6b09e0e36 100644 --- a/rmw_fastrtps_shared_cpp/src/participant.cpp +++ b/rmw_fastrtps_shared_cpp/src/participant.cpp @@ -86,7 +86,7 @@ static CustomParticipantInfo * __create_participant( const char * identifier, - ParticipantAttributes participantAttrs, + const ParticipantAttributes& participantAttrs, bool leave_middleware_default_qos, publishing_mode_t publishing_mode, rmw_dds_common::Context * common_context)