From 86bca144bd29370522c1a20736344f8927544add Mon Sep 17 00:00:00 2001 From: Luis Venancio Date: Thu, 18 Jul 2024 17:36:15 +0100 Subject: [PATCH] Transports/CommManager: Get m_transmission_requests reference, instead of copy. --- src/Transports/CommManager/Task.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Transports/CommManager/Task.cpp b/src/Transports/CommManager/Task.cpp index 5cc54e16a4..ac129e0336 100644 --- a/src/Transports/CommManager/Task.cpp +++ b/src/Transports/CommManager/Task.cpp @@ -298,7 +298,7 @@ namespace Transports if (msg->getDestinationEntity() != getEntityId()) return; - auto tr_list = m_router.getList(); + std::map& tr_list = m_router.getList(); if (tr_list.find(msg->req_id) != tr_list.end()) { @@ -349,7 +349,7 @@ namespace Transports if (msg->getSource() != getSystemId()) return; - auto tr_list = m_router.getList(); + std::map& tr_list = m_router.getList(); if (tr_list.find(msg->req_id) != tr_list.end()) { @@ -399,7 +399,7 @@ namespace Transports return; } - auto tr_list = m_router.getList(); + std::map& tr_list = m_router.getList(); if (tr_list.find(msg->req_id) != tr_list.end()) { @@ -617,7 +617,7 @@ namespace Transports if (msg->getSource() != getSystemId()) return; - auto tr_list = m_router.getList(); + std::map& tr_list = m_router.getList(); if (tr_list.find(msg->req_id) != tr_list.end()) {