From 1e77f7d57798a47323c3cecf8e4a69b84834189d Mon Sep 17 00:00:00 2001 From: cferreiragonz Date: Thu, 22 Feb 2024 09:54:22 +0100 Subject: [PATCH] Refs #20438: Fix windows build Signed-off-by: cferreiragonz --- src/cpp/rtps/transport/TCPTransportInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/rtps/transport/TCPTransportInterface.cpp b/src/cpp/rtps/transport/TCPTransportInterface.cpp index c5f53a16d0a..a1de14700b5 100644 --- a/src/cpp/rtps/transport/TCPTransportInterface.cpp +++ b/src/cpp/rtps/transport/TCPTransportInterface.cpp @@ -772,9 +772,9 @@ bool TCPTransportInterface::OpenOutputChannel( std::vector list; std::vector local_interfaces; get_ips(local_interfaces); - for (const auto& interface : local_interfaces) + for (const auto& interface_it : local_interfaces) { - Locator interface_loc(interface.locator); + Locator interface_loc(interface_it.locator); interface_loc.port = physical_locator.port; if (is_interface_allowed(interface_loc)) {