From 6d484db9b293aac4b8bd790eb7aead3a806f8c7b Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 4 Oct 2024 13:52:55 +0200 Subject: Enable cppcoreguidelines-* checks. --- test/buildtool/build_engine/expression/linked_map.test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/buildtool/build_engine/expression/linked_map.test.cpp') 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()} {} - CopyCounter(CopyCounter const& other) { + CopyCounter(CopyCounter const& other) : count_{other.count_} { ++(*other.count_); - count_ = other.count_; } CopyCounter(CopyCounter&&) = default; ~CopyCounter() = default; -- cgit v1.2.3