Skip to content

Commit ae546de

Browse files
committed
Refs #21082. Please linters.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 4637400 commit ae546de

4 files changed

Lines changed: 20 additions & 17 deletions

File tree

src/cpp/fastdds/builtin/type_lookup_service/TypeLookupManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ bool TypeLookupManager::send_impl(
720720
}
721721

722722
// Serialize the message using the provided PubSubType
723-
bool result = pubsubtype->serialize(&msg, &change->serializedPayload, DataRepresentationId_t::XCDR2_DATA_REPRESENTATION);
723+
bool result = pubsubtype->serialize(&msg, &change->serializedPayload,
724+
DataRepresentationId_t::XCDR2_DATA_REPRESENTATION);
724725
// If serialization was successful, update the change and add it to the WriterHistory
725726
if (result)
726727
{

src/cpp/fastdds/publisher/DataWriterImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,11 @@ ReturnCode_t DataWriterImpl::enable()
366366
static_cast<WriterListener*>(&writer_listener_));
367367

368368
if (writer != nullptr &&
369-
w_att.endpoint.data_sharing_configuration().kind() != DataSharingKind::OFF)
369+
w_att.endpoint.data_sharing_configuration().kind() != DataSharingKind::OFF)
370370
{
371371
auto writer_pool = std::dynamic_pointer_cast<fastdds::rtps::WriterPool>(pool);
372372
if (!writer_pool || !writer_pool->init_shared_memory(
373-
writer, w_att.endpoint.data_sharing_configuration().shm_directory()))
373+
writer, w_att.endpoint.data_sharing_configuration().shm_directory()))
374374
{
375375
EPROSIMA_LOG_ERROR(DATA_WRITER, "Could not initialize DataSharing writer pool");
376376
RTPSDomain::removeRTPSWriter(writer);

src/cpp/statistics/rtps/monitor-service/MonitorService.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ bool MonitorService::create_endpoint()
458458
status_writer_payload_pool_->reserve_history(writer_pool_cfg, false);
459459

460460
status_writer_history_.reset(new eprosima::fastdds::dds::DataWriterHistory(
461-
status_writer_payload_pool_,
462-
std::make_shared<fastdds::rtps::CacheChangePool>(writer_pool_cfg),
463-
tatt, type_.m_typeSize,
464-
MemoryManagementPolicy_t::PREALLOCATED_WITH_REALLOC_MEMORY_MODE,
465-
[](
466-
const InstanceHandle_t& ) -> void
467-
{
468-
}));
461+
status_writer_payload_pool_,
462+
std::make_shared<fastdds::rtps::CacheChangePool>(writer_pool_cfg),
463+
tatt, type_.m_typeSize,
464+
MemoryManagementPolicy_t::PREALLOCATED_WITH_REALLOC_MEMORY_MODE,
465+
[](
466+
const InstanceHandle_t& ) -> void
467+
{
468+
}));
469469

470470
listener_ = new MonitorServiceListener(this);
471471

test/unittest/statistics/dds/StatisticsDomainParticipantStatusQueryableTests/mock/fastdds/publisher/DataWriterImpl.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ class DataWriterImpl : protected rtps::IReaderDataFilter
128128
std::shared_ptr<fastdds::rtps::IChangePool> change_pool;
129129

130130
history_.reset(new DataWriterHistory(
131-
payload_pool,
132-
change_pool,
133-
atts_,
134-
500,
135-
fastdds::rtps::PREALLOCATED_WITH_REALLOC_MEMORY_MODE,
136-
[](const InstanceHandle_t&) {}));
131+
payload_pool,
132+
change_pool,
133+
atts_,
134+
500,
135+
fastdds::rtps::PREALLOCATED_WITH_REALLOC_MEMORY_MODE,
136+
[](const InstanceHandle_t&)
137+
{
138+
}));
137139
return RETCODE_OK;
138140
}
139141

0 commit comments

Comments
 (0)