From 8cd0977a3688fa705c83867c57505a47b9269369 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Jan 2023 16:34:43 +0000 Subject: Fix up all the static analyzer warnings --- test/test-obj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test-obj.cpp') diff --git a/test/test-obj.cpp b/test/test-obj.cpp index c7bd6ce..e6e725d 100644 --- a/test/test-obj.cpp +++ b/test/test-obj.cpp @@ -12,7 +12,7 @@ BOOST_AUTO_TEST_CASE(objparse) { - ObjParser op {RESDIR "/brush47.obj"}; + const ObjParser op {RESDIR "/brush47.obj"}; BOOST_CHECK_EQUAL(75, op.vertices.size()); BOOST_CHECK_EQUAL(112, op.texCoords.size()); BOOST_CHECK_EQUAL(31, op.normals.size()); @@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(objparse) BOOST_AUTO_TEST_CASE(create_meshes) { - ObjParser op {RESDIR "/brush47.obj"}; + const ObjParser op {RESDIR "/brush47.obj"}; const auto ms = op.createMeshData(); BOOST_REQUIRE_EQUAL(3, ms.size()); BOOST_REQUIRE_EQUAL("Body", ms.begin()->first); -- cgit v1.2.3