From ed59867982225ca06a6744f41446514d70ef904a Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Tue, 7 May 2024 12:36:40 +0200 Subject: [PATCH] Refs #20742: Please linter Signed-off-by: JesusPoderoso --- src/cpp/fastdds/subscriber/DataReaderImpl.cpp | 2 +- test/unittest/dds/publisher/DataWriterTests.cpp | 1 + test/unittest/dds/subscriber/DataReaderTests.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp index f3cd359875f..4a15dac063c 100644 --- a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp +++ b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp @@ -1799,7 +1799,7 @@ std::shared_ptr DataReaderImpl::get_payload_pool() else { is_plain = type_->is_plain(DataRepresentationId_t::XCDR_DATA_REPRESENTATION) - && type_->is_plain(DataRepresentationId_t::XCDR2_DATA_REPRESENTATION); + && type_->is_plain(DataRepresentationId_t::XCDR2_DATA_REPRESENTATION); } // When the user requested PREALLOCATED_WITH_REALLOC, but we know the type cannot diff --git a/test/unittest/dds/publisher/DataWriterTests.cpp b/test/unittest/dds/publisher/DataWriterTests.cpp index c58442cc02f..529a46ca80d 100644 --- a/test/unittest/dds/publisher/DataWriterTests.cpp +++ b/test/unittest/dds/publisher/DataWriterTests.cpp @@ -2192,6 +2192,7 @@ class DataRepresentationTestsTypeSupport : public LoanableTypeSupport { return custom_is_plain(); } + }; TEST(DataWriterTests, data_type_is_plain_data_representation) diff --git a/test/unittest/dds/subscriber/DataReaderTests.cpp b/test/unittest/dds/subscriber/DataReaderTests.cpp index 6c79429b9f3..d06472baa73 100644 --- a/test/unittest/dds/subscriber/DataReaderTests.cpp +++ b/test/unittest/dds/subscriber/DataReaderTests.cpp @@ -3832,6 +3832,7 @@ class DataRepresentationTestsTypeSupport : public TopicDataType { return custom_is_plain(); } + }; TEST_F(DataReaderTests, data_type_is_plain_data_representation)