Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-05-26 21:19:55 +0200
committerMartin Hořeňovský2019-05-26 21:19:55 +0200
commita5a2d08fbb3f68cf3f0bfbaa11e8b7a2d4386d61 (patch)
treea484acba15c8ddb63e0460a3a6995282b942dbef /include
parent97602b248b4380eac28de4dd8961c3f1acf42471 (diff)
downloadcatch3-a5a2d08fbb3f68cf3f0bfbaa11e8b7a2d4386d61.tar.gz
Remove commented out code
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_stringref.h10
1 files 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;
}