diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-08 16:34:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-08 16:34:43 +0000 |
commit | 8cd0977a3688fa705c83867c57505a47b9269369 (patch) | |
tree | b7b48711051299607077ed31fdf3b3f6dd6cc41f /test/test-lib.cpp | |
parent | Tidy shadow map creation (diff) | |
download | ilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.bz2 ilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.xz ilt-8cd0977a3688fa705c83867c57505a47b9269369.zip |
Fix up all the static analyzer warnings
Diffstat (limited to 'test/test-lib.cpp')
-rw-r--r-- | test/test-lib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-lib.cpp b/test/test-lib.cpp index e464f2f..73ed53a 100644 --- a/test/test-lib.cpp +++ b/test/test-lib.cpp @@ -1,6 +1,6 @@ #define BOOST_TEST_MODULE test_lib -#include "test-helpers.hpp" +#include "testHelpers.h" #include <boost/test/data/test_case.hpp> #include <boost/test/unit_test.hpp> @@ -33,7 +33,7 @@ using TestArray = glArrays<5, &generator, &deleter>; BOOST_AUTO_TEST_CASE(generate_and_delete) { { - TestArray a; + const TestArray a; } BOOST_CHECK(active.empty()); } @@ -43,7 +43,7 @@ BOOST_AUTO_TEST_CASE(generate_move_and_delete) { TestArray a; BOOST_CHECK_EQUAL(TestArray::size, active.size()); - TestArray b {std::move(a)}; + const TestArray b {std::move(a)}; BOOST_CHECK_EQUAL(TestArray::size, active.size()); } BOOST_CHECK(active.empty()); |