]> granicus.if.org Git - graphviz/commitdiff
tests: SVGAnalyzer: use fmt::format instead of string concatenation
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 24 Aug 2022 11:00:56 +0000 (13:00 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 30 Aug 2022 20:17:05 +0000 (22:17 +0200)
tests/svg_analyzer.cpp

index d3361c9b94436695ec337be64db6eef7f10879c9..3f4017487b93026ada377640a6dd047f9a36c15d 100644 (file)
@@ -165,7 +165,7 @@ void SVGAnalyzer::retrieve_graphviz_components_impl(
     } else if (class_ == "cluster") {
       // ignore for now
     } else {
-      throw std::runtime_error("Unknown class" + std::string{class_});
+      throw std::runtime_error{fmt::format("Unknown class {}", class_)};
     }
   }