Replace ostringstream with ReusableStringStream in ConsoleReporter

This commit is contained in:
Martin Hořeňovský 2020-08-02 18:51:57 +02:00
parent 9d591f19ff
commit 81aa2d5582
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -18,6 +18,8 @@
#include <catch2/internal/catch_stream.hpp>
#include <catch2/internal/catch_stringref.hpp>
#include <catch2/catch_test_case_info.hpp>
#include <catch2/internal/catch_console_width.hpp>
#include <catch2/internal/catch_stream.hpp>
#include <cfloat>
#include <cstdio>
@ -277,7 +279,7 @@ public:
class TablePrinter {
std::ostream& m_os;
std::vector<ColumnInfo> m_columnInfos;
std::ostringstream m_oss;
ReusableStringStream m_oss;
int m_currentColumn = -1;
bool m_isOpen = false;