diff --git a/src/cpp/fastdds/publisher/DataWriterImpl.cpp b/src/cpp/fastdds/publisher/DataWriterImpl.cpp index 9eecbdf7589..1a49eab3336 100644 --- a/src/cpp/fastdds/publisher/DataWriterImpl.cpp +++ b/src/cpp/fastdds/publisher/DataWriterImpl.cpp @@ -1556,7 +1556,8 @@ bool DataWriterImpl::lifespan_expired() CacheChange_t* earliest_change; while (history_.get_earliest_change(&earliest_change)) { - fastrtps::Time_t expiration_ts(earliest_change->sourceTimestamp.seconds(), earliest_change->sourceTimestamp.nanosec()); + fastrtps::Time_t expiration_ts(earliest_change->sourceTimestamp.seconds(), + earliest_change->sourceTimestamp.nanosec()); expiration_ts = expiration_ts + qos_.lifespan().duration; // Check that the earliest change has expired (the change which started the timer could have been removed from the history) diff --git a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp index 822ae4caf76..1cc74151d85 100644 --- a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp +++ b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp @@ -1280,7 +1280,8 @@ bool DataReaderImpl::lifespan_expired() CacheChange_t* earliest_change; while (history_.get_earliest_change(&earliest_change)) { - fastrtps::Time_t expiration_ts(earliest_change->sourceTimestamp.seconds(), earliest_change->sourceTimestamp.nanosec()); + fastrtps::Time_t expiration_ts(earliest_change->sourceTimestamp.seconds(), + earliest_change->sourceTimestamp.nanosec()); expiration_ts = expiration_ts + qos_.lifespan().duration; // Check that the earliest change has expired (the change which started the timer could have been removed from the history)