From 6359bc0333b31e78e7cfd2572c7bbad4e7adcf48 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 23 Aug 2022 17:20:50 +0200 Subject: [PATCH] tests: SVGAnalyzer: use fmt::format instead of string concatenation --- tests/graphviz_graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)}; } -- 2.50.1