From 7827b06edf6a0629eb659540595c347965abfb88 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 27 Nov 2021 00:36:19 +0000 Subject: Fix up lots of static analyzer warnings --- test/test-maths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test-maths.cpp b/test/test-maths.cpp index decebcc..edc3e60 100644 --- a/test/test-maths.cpp +++ b/test/test-maths.cpp @@ -169,7 +169,7 @@ BOOST_AUTO_TEST_CASE(test_find_arcs_radius) } struct TestLinkStraight : public LinkStraight { - TestLinkStraight(glm::vec3 v) : + explicit TestLinkStraight(glm::vec3 v) : Link {{std::make_shared(origin), vector_yaw(v)}, {std::make_shared(v), vector_yaw(-v)}, glm::length(v)} { @@ -200,7 +200,7 @@ BOOST_DATA_TEST_CASE(straight1, } struct TestLinkCurve : public LinkCurve { - TestLinkCurve(glm::vec3 e0, glm::vec3 e1, glm::vec3 ctr) : + explicit TestLinkCurve(glm::vec3 e0, glm::vec3 e1, glm::vec3 ctr) : Link {{std::make_shared(e0), normalize(vector_yaw(ctr - e0) - half_pi)}, {std::make_shared(e1), normalize(vector_yaw(ctr - e1) - half_pi)}, glm::length(e1 - e0)}, LinkCurve(ctr, glm::length(e0 - ctr), {ctr, e0, e1}) -- cgit v1.2.3