diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-27 00:36:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-27 00:36:25 +0000 |
commit | 7827b06edf6a0629eb659540595c347965abfb88 (patch) | |
tree | 3b52612ae8f591f23e2b179fe817f4d4c948a7ce /test/test-maths.cpp | |
parent | Enable all Jason Turner recommended warnings (diff) | |
download | ilt-7827b06edf6a0629eb659540595c347965abfb88.tar.bz2 ilt-7827b06edf6a0629eb659540595c347965abfb88.tar.xz ilt-7827b06edf6a0629eb659540595c347965abfb88.zip |
Fix up lots of static analyzer warnings
Diffstat (limited to 'test/test-maths.cpp')
-rw-r--r-- | test/test-maths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Node>(origin), vector_yaw(v)}, {std::make_shared<Node>(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<Node>(e0), normalize(vector_yaw(ctr - e0) - half_pi)}, {std::make_shared<Node>(e1), normalize(vector_yaw(ctr - e1) - half_pi)}, glm::length(e1 - e0)}, LinkCurve(ctr, glm::length(e0 - ctr), {ctr, e0, e1}) |