From ce23db59c6399199fa55b4b7dc8880522e2f1bca Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 30 Sep 2024 12:16:43 +0200 Subject: Enable readability-redundant-member-init check. --- src/utils/cpp/atomic.hpp | 8 ++++---- src/utils/cpp/file_locking.hpp | 2 +- src/utils/cpp/tmp_dir.hpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/utils/cpp') diff --git a/src/utils/cpp/atomic.hpp b/src/utils/cpp/atomic.hpp index b610a350..ec1c7dc0 100644 --- a/src/utils/cpp/atomic.hpp +++ b/src/utils/cpp/atomic.hpp @@ -88,8 +88,8 @@ class atomic { private: std::atomic value_{}; - mutable std::shared_mutex mutex_{}; - mutable std::condition_variable_any cv_{}; + mutable std::shared_mutex mutex_; + mutable std::condition_variable_any cv_; }; // Atomic shared_pointer with notify/wait capabilities. @@ -134,8 +134,8 @@ class atomic_shared_ptr { private: ptr_t value_{}; - mutable std::shared_mutex mutex_{}; - mutable std::condition_variable_any cv_{}; + mutable std::shared_mutex mutex_; + mutable std::condition_variable_any cv_; }; #endif // INCLUDED_SRC_UTILS_CPP_ATOMIC_HPP diff --git a/src/utils/cpp/file_locking.hpp b/src/utils/cpp/file_locking.hpp index f8ac1443..abcca121 100644 --- a/src/utils/cpp/file_locking.hpp +++ b/src/utils/cpp/file_locking.hpp @@ -50,7 +50,7 @@ class LockFile { private: gsl::owner file_handle_{nullptr}; - std::filesystem::path lock_file_{}; + std::filesystem::path lock_file_; /// \brief Private ctor. Instances are only created by Acquire method. explicit LockFile(gsl::owner file_handle, diff --git a/src/utils/cpp/tmp_dir.hpp b/src/utils/cpp/tmp_dir.hpp index 9188fa60..bff73916 100644 --- a/src/utils/cpp/tmp_dir.hpp +++ b/src/utils/cpp/tmp_dir.hpp @@ -51,7 +51,7 @@ class TmpDir { -> TmpDirPtr; private: - std::filesystem::path tmp_dir_{}; + std::filesystem::path tmp_dir_; }; #endif // INCLUDED_SRC_OTHER_TOOLS_TMP_DIR_HPP -- cgit v1.2.3