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 commented out code

Commit
a5a2d08fbb3f68cf3f0bfbaa11e8b7a2d4386d61
Author
Martin Hořeňovský ·
Parents
97602b248b43

Files · Download .tar.gz

Changes

 include/internal/catch_stringref.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/internal/catch_stringref.h b/include/internal/catch_stringref.h
index 70f68476..64f595b3 100644
--- a/include/internal/catch_stringref.h
+++ b/include/internal/catch_stringref.h
@@ -71,12 +71,10 @@ namespace Catch {
         }
 
         auto operator = ( StringRef const &other ) noexcept -> StringRef& {
-//            if( this != &other ) {
-                delete[] m_data;
-                m_data = nullptr;
-                m_start = other.m_start;
-                m_size = other.m_size;
-  //          }
+            delete[] m_data;
+            m_data = nullptr;
+            m_start = other.m_start;
+            m_size = other.m_size;
             return *this;
         }