From 509f7937e5a4ec93e8f17a878cca42473f156b37 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 23 Aug 2022 13:52:45 +0200 Subject: [PATCH] tests: test_utilities: declare unmodified parameter const --- tests/test_utilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utilities.cpp b/tests/test_utilities.cpp index 8f0c621f2..b7e964370 100644 --- a/tests/test_utilities.cpp +++ b/tests/test_utilities.cpp @@ -144,12 +144,12 @@ const std::unordered_set all_node_shapes = { "lpromoter" // }; -bool contains_polygon_shape(std::string_view shape) { +bool contains_polygon_shape(const std::string_view shape) { return node_shapes_consisting_of_polygon.contains(shape) || node_shapes_consisting_of_polygon_and_polyline.contains(shape); } -bool contains_ellipse_shape(std::string_view shape) { +bool contains_ellipse_shape(const std::string_view shape) { return node_shapes_consisting_of_ellipse.contains(shape) || node_shapes_consisting_of_ellipse_and_polyline.contains(shape); } -- 2.50.1