diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-04 13:52:55 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 17:51:22 +0200 |
commit | 6d484db9b293aac4b8bd790eb7aead3a806f8c7b (patch) | |
tree | c7a93cef8a95006f217d557300151ce5e8735437 /test/buildtool/build_engine | |
parent | 0fc0d9118b5e525fa582de0286c8e83bb0da4e16 (diff) | |
download | justbuild-6d484db9b293aac4b8bd790eb7aead3a806f8c7b.tar.gz |
Enable cppcoreguidelines-* checks.
Diffstat (limited to 'test/buildtool/build_engine')
-rw-r--r-- | test/buildtool/build_engine/expression/linked_map.test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/buildtool/build_engine/expression/linked_map.test.cpp b/test/buildtool/build_engine/expression/linked_map.test.cpp index f6c3bd58..1a8ceff5 100644 --- a/test/buildtool/build_engine/expression/linked_map.test.cpp +++ b/test/buildtool/build_engine/expression/linked_map.test.cpp @@ -95,9 +95,8 @@ TEST_CASE("Lookup and iteration", "[linked_map]") { class CopyCounter { public: CopyCounter() : count_{std::make_shared<std::size_t>()} {} - CopyCounter(CopyCounter const& other) { + CopyCounter(CopyCounter const& other) : count_{other.count_} { ++(*other.count_); - count_ = other.count_; } CopyCounter(CopyCounter&&) = default; ~CopyCounter() = default; |