From 352767a18e9f00162534b8c9a39fb074d0d5e1e7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Dec 2020 19:34:12 +0000 Subject: Add a check to satisfy an otherwise valid cppcheck Redundant initialization for 'r1a'. --- libadhocutil/unittests/testResourcePool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libadhocutil/unittests/testResourcePool.cpp b/libadhocutil/unittests/testResourcePool.cpp index f1b9c04..d11c0d0 100644 --- a/libadhocutil/unittests/testResourcePool.cpp +++ b/libadhocutil/unittests/testResourcePool.cpp @@ -95,6 +95,7 @@ BOOST_AUTO_TEST_CASE(get) BOOST_REQUIRE(r2.get()); auto r1a = r2; + BOOST_CHECK_EQUAL(2, r1a.handleCount()); r1a = r1; BOOST_REQUIRE_EQUAL(2, pool.inUseCount()); BOOST_REQUIRE_EQUAL(0, pool.availableCount()); -- cgit v1.2.3