diff options
| author | Martin Hořeňovský | 2023-12-27 21:43:40 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-12-27 21:43:49 +0100 |
| commit | b52d97855d794175e69abc6f0eceee9ec3c1bd0e (patch) | |
| tree | 58a39440729f19ff1f39da58286c64dc3bcdd31a /src/catch2/internal/catch_clara.cpp | |
| parent | eaafd076743407e930a11297425f33c1f78220b0 (diff) | |
| download | catch3-b52d97855d794175e69abc6f0eceee9ec3c1bd0e.tar.gz | |
Move-enable various parts of TextFlow
This removes about 200 pointless copies from printing the help
message (the original motivation for the change), and also nicely
improves performance of the various reporters that depend on
TextFlow.
Diffstat (limited to 'src/catch2/internal/catch_clara.cpp')
| -rw-r--r-- | src/catch2/internal/catch_clara.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_clara.cpp b/src/catch2/internal/catch_clara.cpp index 5f486764..c76089ee 100644 --- a/src/catch2/internal/catch_clara.cpp +++ b/src/catch2/internal/catch_clara.cpp @@ -366,8 +366,8 @@ namespace Catch { optWidth = ( std::min )( optWidth, consoleWidth / 2 ); - for ( auto const& cols : rows ) { - auto row = TextFlow::Column( cols.left ) + for ( auto& cols : rows ) { + auto row = TextFlow::Column( CATCH_MOVE(cols.left) ) .width( optWidth ) .indent( 2 ) + TextFlow::Spacer( 4 ) + |