From: Magnus Jacobsson Date: Tue, 23 Aug 2022 15:20:50 +0000 (+0200) Subject: tests: SVGAnalyzer: use fmt::format instead of string concatenation X-Git-Tag: 6.0.1~15^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6359bc0333b31e78e7cfd2572c7bbad4e7adcf48;p=graphviz tests: SVGAnalyzer: use fmt::format instead of string concatenation --- diff --git a/tests/graphviz_graph.cpp b/tests/graphviz_graph.cpp index 9fbd80ff4..54ca7a665 100644 --- a/tests/graphviz_graph.cpp +++ b/tests/graphviz_graph.cpp @@ -43,6 +43,6 @@ const GraphvizEdge &GraphvizGraph::edge(std::string_view edgeop) const { return edge; } } - throw std::runtime_error("Unknown edge '" + std::string{edgeop} + - "' in graph " + m_graph_id); + throw std::runtime_error{ + fmt::format("Unknown edge '{}' in graph '{}'", edgeop, m_graph_id)}; }