diff --git a/include/fastdds/statistics/rtps/StatisticsCommonEmpty.hpp b/include/fastdds/statistics/rtps/StatisticsCommonEmpty.hpp index c4d5aafd01e..5e0181a7f54 100644 --- a/include/fastdds/statistics/rtps/StatisticsCommonEmpty.hpp +++ b/include/fastdds/statistics/rtps/StatisticsCommonEmpty.hpp @@ -84,7 +84,7 @@ class StatisticsWriterImpl */ inline void on_publish_throughput( uint32_t) - { + { } /// Report that a GAP message is sent diff --git a/src/cpp/statistics/rtps/writer/StatisticsWriterImpl.cpp b/src/cpp/statistics/rtps/writer/StatisticsWriterImpl.cpp index 2f96e06490a..c201aee783d 100644 --- a/src/cpp/statistics/rtps/writer/StatisticsWriterImpl.cpp +++ b/src/cpp/statistics/rtps/writer/StatisticsWriterImpl.cpp @@ -188,7 +188,7 @@ void StatisticsWriterImpl::on_publish_throughput( { // update state time_point former_timepoint; - auto & current_timepoint = get_members()->last_history_change_; + auto& current_timepoint = get_members()->last_history_change_; { lock_guard lock(get_statistics_mutex()); former_timepoint = current_timepoint;