From fc4745738b3d2a7ad02ab98aea7a88e2c8e451f8 Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:23:05 +0200 Subject: [PATCH] Refs #20765: Make StatelessReader private Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- .../participant/DS/DiscoveryServerPDPEndpointsSecure.hpp | 3 +-- src/cpp/rtps/builtin/discovery/participant/PDP.cpp | 2 +- src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp | 2 +- .../discovery/participant/simple/SimplePDPEndpoints.hpp | 3 +-- src/cpp/rtps/participant/RTPSParticipantImpl.cpp | 2 +- src/cpp/rtps/reader/StatelessPersistentReader.h | 2 +- src/cpp/rtps/reader/StatelessReader.cpp | 2 +- {include/fastdds => src/cpp}/rtps/reader/StatelessReader.h | 0 src/cpp/rtps/security/SecurityManager.cpp | 2 +- .../{fastdds => }/rtps/reader/StatelessReader.h | 0 test/unittest/dds/subscriber/DataReaderHistoryTests.cpp | 2 +- test/unittest/rtps/security/SecurityTests.hpp | 2 +- 12 files changed, 10 insertions(+), 12 deletions(-) rename {include/fastdds => src/cpp}/rtps/reader/StatelessReader.h (100%) rename test/mock/rtps/StatelessReader/{fastdds => }/rtps/reader/StatelessReader.h (100%) diff --git a/src/cpp/rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpointsSecure.hpp b/src/cpp/rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpointsSecure.hpp index 150167ac954..a8ec878e3bf 100644 --- a/src/cpp/rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpointsSecure.hpp +++ b/src/cpp/rtps/builtin/discovery/participant/DS/DiscoveryServerPDPEndpointsSecure.hpp @@ -23,10 +23,9 @@ #include #include -#include - #include #include +#include namespace eprosima { namespace fastdds { diff --git a/src/cpp/rtps/builtin/discovery/participant/PDP.cpp b/src/cpp/rtps/builtin/discovery/participant/PDP.cpp index 5e4c1b8069b..5094f2cfbaa 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDP.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDP.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -50,6 +49,7 @@ #include #include #include +#include #include #include diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp index 7c9265af0fb..73dda8f7099 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include namespace eprosima { namespace fastrtps { diff --git a/src/cpp/rtps/builtin/discovery/participant/simple/SimplePDPEndpoints.hpp b/src/cpp/rtps/builtin/discovery/participant/simple/SimplePDPEndpoints.hpp index 4e1caeea91a..a405b501426 100644 --- a/src/cpp/rtps/builtin/discovery/participant/simple/SimplePDPEndpoints.hpp +++ b/src/cpp/rtps/builtin/discovery/participant/simple/SimplePDPEndpoints.hpp @@ -22,13 +22,12 @@ #include #include -#include #include - #include #include #include #include +#include namespace eprosima { namespace fastdds { diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp index eaf8b8553da..51cff850fa9 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -64,6 +63,7 @@ #include #include #include +#include #include #include #include diff --git a/src/cpp/rtps/reader/StatelessPersistentReader.h b/src/cpp/rtps/reader/StatelessPersistentReader.h index 71371f6f00c..cb775976999 100644 --- a/src/cpp/rtps/reader/StatelessPersistentReader.h +++ b/src/cpp/rtps/reader/StatelessPersistentReader.h @@ -21,7 +21,7 @@ #define _FASTDDS_RTPS_STATELESSPERSISTENTREADER_H_ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#include +#include namespace eprosima { namespace fastrtps { diff --git a/src/cpp/rtps/reader/StatelessReader.cpp b/src/cpp/rtps/reader/StatelessReader.cpp index 750eae24afb..e535e1c58f9 100644 --- a/src/cpp/rtps/reader/StatelessReader.cpp +++ b/src/cpp/rtps/reader/StatelessReader.cpp @@ -26,13 +26,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "rtps/RTPSDomainImpl.hpp" diff --git a/include/fastdds/rtps/reader/StatelessReader.h b/src/cpp/rtps/reader/StatelessReader.h similarity index 100% rename from include/fastdds/rtps/reader/StatelessReader.h rename to src/cpp/rtps/reader/StatelessReader.h diff --git a/src/cpp/rtps/security/SecurityManager.cpp b/src/cpp/rtps/security/SecurityManager.cpp index 1c37ca74b85..6daca9e4a49 100644 --- a/src/cpp/rtps/security/SecurityManager.cpp +++ b/src/cpp/rtps/security/SecurityManager.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -47,6 +46,7 @@ #include #include #include +#include #include #define BUILTIN_ENDPOINT_PARTICIPANT_MESSAGE_SECURE_WRITER (1 << 20) diff --git a/test/mock/rtps/StatelessReader/fastdds/rtps/reader/StatelessReader.h b/test/mock/rtps/StatelessReader/rtps/reader/StatelessReader.h similarity index 100% rename from test/mock/rtps/StatelessReader/fastdds/rtps/reader/StatelessReader.h rename to test/mock/rtps/StatelessReader/rtps/reader/StatelessReader.h diff --git a/test/unittest/dds/subscriber/DataReaderHistoryTests.cpp b/test/unittest/dds/subscriber/DataReaderHistoryTests.cpp index 3fd9fc0c827..f62c6f52d51 100644 --- a/test/unittest/dds/subscriber/DataReaderHistoryTests.cpp +++ b/test/unittest/dds/subscriber/DataReaderHistoryTests.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include diff --git a/test/unittest/rtps/security/SecurityTests.hpp b/test/unittest/rtps/security/SecurityTests.hpp index 644e22881ab..eee75639488 100644 --- a/test/unittest/rtps/security/SecurityTests.hpp +++ b/test/unittest/rtps/security/SecurityTests.hpp @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -29,6 +28,7 @@ #include #include #include +#include #include #include #include