summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-04 19:34:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-04 19:34:55 +0000
commit352767a18e9f00162534b8c9a39fb074d0d5e1e7 (patch)
tree25ed56f1886dd9968b813437ff92dc1c78553ef2
parentBetter detection first param is a stream (diff)
downloadlibadhocutil-352767a18e9f00162534b8c9a39fb074d0d5e1e7.tar.bz2
libadhocutil-352767a18e9f00162534b8c9a39fb074d0d5e1e7.tar.xz
libadhocutil-352767a18e9f00162534b8c9a39fb074d0d5e1e7.zip
Add a check to satisfy an otherwise valid cppcheck
Redundant initialization for 'r1a'.
-rw-r--r--libadhocutil/unittests/testResourcePool.cpp1
1 files changed, 1 insertions, 0 deletions
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());