]> granicus.if.org Git - graphviz/commitdiff
tests: test_utilities: declare unmodified parameter const
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 23 Aug 2022 11:52:45 +0000 (13:52 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 5 Sep 2022 07:01:20 +0000 (09:01 +0200)
tests/test_utilities.cpp

index 8f0c621f2a93962a5d3b87f5e7138e45d7589bd9..b7e964370ec1802b146c60b4d95ddf7ea257806f 100644 (file)
@@ -144,12 +144,12 @@ const std::unordered_set<std::string_view> 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);
 }