From 81aa2d5582444ff79eedec7c098c096b6f8aa0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 2 Aug 2020 18:51:57 +0200 Subject: [PATCH] Replace ostringstream with ReusableStringStream in ConsoleReporter --- src/catch2/reporters/catch_reporter_console.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp index 3169d95a..afceede4 100644 --- a/src/catch2/reporters/catch_reporter_console.cpp +++ b/src/catch2/reporters/catch_reporter_console.cpp @@ -18,6 +18,8 @@ #include #include #include +#include +#include #include #include @@ -277,7 +279,7 @@ public: class TablePrinter { std::ostream& m_os; std::vector m_columnInfos; - std::ostringstream m_oss; + ReusableStringStream m_oss; int m_currentColumn = -1; bool m_isOpen = false;