diff options
| author | Martin Hořeňovský | 2020-08-02 18:51:57 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-08-03 22:59:43 +0200 |
| commit | 81aa2d5582444ff79eedec7c098c096b6f8aa0cf (patch) | |
| tree | 3f3c3195ead547e80b71b774ff2b97fd91ebc719 /src | |
| parent | 9d591f19ff6b0dfe4469e1d4b6a60f92f2357c06 (diff) | |
| download | catch3-81aa2d5582444ff79eedec7c098c096b6f8aa0cf.tar.gz | |
Replace ostringstream with ReusableStringStream in ConsoleReporter
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_console.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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; |