mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Replace ostringstream with ReusableStringStream in ConsoleReporter
This commit is contained in:
parent
9d591f19ff
commit
81aa2d5582
@ -18,6 +18,8 @@
|
|||||||
#include <catch2/internal/catch_stream.hpp>
|
#include <catch2/internal/catch_stream.hpp>
|
||||||
#include <catch2/internal/catch_stringref.hpp>
|
#include <catch2/internal/catch_stringref.hpp>
|
||||||
#include <catch2/catch_test_case_info.hpp>
|
#include <catch2/catch_test_case_info.hpp>
|
||||||
|
#include <catch2/internal/catch_console_width.hpp>
|
||||||
|
#include <catch2/internal/catch_stream.hpp>
|
||||||
|
|
||||||
#include <cfloat>
|
#include <cfloat>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -277,7 +279,7 @@ public:
|
|||||||
class TablePrinter {
|
class TablePrinter {
|
||||||
std::ostream& m_os;
|
std::ostream& m_os;
|
||||||
std::vector<ColumnInfo> m_columnInfos;
|
std::vector<ColumnInfo> m_columnInfos;
|
||||||
std::ostringstream m_oss;
|
ReusableStringStream m_oss;
|
||||||
int m_currentColumn = -1;
|
int m_currentColumn = -1;
|
||||||
bool m_isOpen = false;
|
bool m_isOpen = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user