Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Remove superfluous pointer copy in AssertionStats constructor

Commit
8e5a4b6f706b705844665ad99bf3e59980d5b4c5
Author
Martin Hořeňovský ·
Parents
9b884d8107b9

Files · Download .tar.gz

Changes

 src/catch2/interfaces/catch_interfaces_reporter.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp
index 67c5c80e..3274bcf5 100644
--- a/src/catch2/interfaces/catch_interfaces_reporter.cpp
+++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp
@@ -54,8 +54,6 @@ namespace Catch {
         infoMessages( _infoMessages ),
         totals( _totals )
     {
-        assertionResult.m_resultData.lazyExpression.m_transientExpression = _assertionResult.m_resultData.lazyExpression.m_transientExpression;
-
         if( assertionResult.hasMessage() ) {
             // Copy message into messages list.
             // !TBD This should have been done earlier, somewhere