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; }