clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / common / urcu.hpp
index d121ecd9f6799b62e1236a56b17d4d9f4110ba85..abbf71679690c0b7f95e2f3f44db744cf05ef413 100644 (file)
@@ -57,15 +57,13 @@ public:
  */
 class read_lock_guard {
 public:
-       read_lock_guard() : _guard(_lock)
-       {
-       }
+       read_lock_guard() = default;
 
        read_lock_guard(const read_lock_guard &) = delete;
 
 private:
        details::read_lock _lock;
-       std::lock_guard<details::read_lock> _guard;
+       std::lock_guard<details::read_lock> _guard{_lock};
 };
 
 using unique_read_lock = std::unique_lock<details::read_lock>;
This page took 0.022469 seconds and 4 git commands to generate.