summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-04-02 19:54:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-04-02 19:54:43 +0100
commit21556ed61d82d233819c115779809a3515ef34b1 (patch)
treeed5eba7fcdc999e82f4f0f45ffa8015b1a08f9c4
parentDon't use smart pointer for global static (diff)
downloadlibadhocutil-0.7.3.tar.bz2
libadhocutil-0.7.3.tar.xz
libadhocutil-0.7.3.zip
Fix tidy warning in test caselibadhocutil-0.7.3
-rw-r--r--libadhocutil/unittests/testResourcePool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/unittests/testResourcePool.cpp b/libadhocutil/unittests/testResourcePool.cpp
index ae3e322..ec8bd71 100644
--- a/libadhocutil/unittests/testResourcePool.cpp
+++ b/libadhocutil/unittests/testResourcePool.cpp
@@ -13,7 +13,7 @@ class MockResource {
void operator=(const MockResource &) = delete;
void operator=(MockResource &&) = delete;
- bool valid() const { return true; }
+ [[ nodiscard ]] bool valid() const { return true; }
const unsigned int id;
static std::atomic<unsigned int> ids;