diff --git a/src/rj_benchmarking/include/rj_benchmarking/registry_publisher.hpp b/src/rj_benchmarking/include/rj_benchmarking/registry_publisher.hpp index 024f8aee3d..6856e45d7c 100644 --- a/src/rj_benchmarking/include/rj_benchmarking/registry_publisher.hpp +++ b/src/rj_benchmarking/include/rj_benchmarking/registry_publisher.hpp @@ -8,7 +8,7 @@ class RegistryPublisher { public: static std::shared_ptr getRegistryPub() { // static local variables are intialized once and persist out of scope and subsequent calls - static std::shared_ptr registry_pub = + static std::shared_ptr registry_pub = std::make_shared(); return registry_pub; } @@ -17,7 +17,6 @@ class RegistryPublisher { RegistryPublisher() = default; private: - // Private Constructor // RegistryPublisher() = default; diff --git a/src/rj_benchmarking/src/registry.cpp b/src/rj_benchmarking/src/registry.cpp index 3576d03742..9be9869560 100644 --- a/src/rj_benchmarking/src/registry.cpp +++ b/src/rj_benchmarking/src/registry.cpp @@ -40,13 +40,10 @@ Registry::~Registry() { // Print out data row by row for (size_t row = 0; row < max_rows_; ++row) { for (const auto& [label, timestamps] : registry_[i]) { - if (row >= timestamps.size()) - { + if (row >= timestamps.size()) { // sentinel value robot_csv << -1 << ','; - } - else - { + } else { robot_csv << timestamps[row] << ','; } }