From: Magnus Jacobsson Date: Tue, 23 Aug 2022 11:52:45 +0000 (+0200) Subject: tests: test_utilities: declare unmodified parameter const X-Git-Tag: 6.0.1~10^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509f7937e5a4ec93e8f17a878cca42473f156b37;p=graphviz tests: test_utilities: declare unmodified parameter const --- 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); }