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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-08-05 18:21:38 +0200
committerMartin Hořeňovský2023-08-05 18:21:38 +0200
commitb593be21160766291bfef7ccb8b1471a4a64abd9 (patch)
treecd091a70b00dd60822c5b8f0f5c8b8bfc8b1397f
parented4acded380ac5408acf9fa518984cbe1bbe25bd (diff)
downloadcatch3-b593be21160766291bfef7ccb8b1471a4a64abd9.tar.gz
Always default empty destructors
-rw-r--r--src/catch2/internal/catch_enum_values_registry.cpp2
-rw-r--r--src/catch2/internal/catch_exception_translator_registry.cpp3
-rw-r--r--src/catch2/internal/catch_leak_detector.cpp2
-rw-r--r--src/catch2/internal/catch_tag_alias_registry.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_automake.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_compact.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_teamcity.cpp2
7 files changed, 7 insertions, 8 deletions
diff --git a/src/catch2/internal/catch_enum_values_registry.cpp b/src/catch2/internal/catch_enum_values_registry.cpp
index 7e8bf5e5..a94b6088 100644
--- a/src/catch2/internal/catch_enum_values_registry.cpp
+++ b/src/catch2/internal/catch_enum_values_registry.cpp
@@ -39,7 +39,7 @@ namespace Catch {
return parsed;
}
- EnumInfo::~EnumInfo() {}
+ EnumInfo::~EnumInfo() = default;
StringRef EnumInfo::lookup( int value ) const {
for( auto const& valueToName : m_values ) {
diff --git a/src/catch2/internal/catch_exception_translator_registry.cpp b/src/catch2/internal/catch_exception_translator_registry.cpp
index 103fc9ae..1eb61147 100644
--- a/src/catch2/internal/catch_exception_translator_registry.cpp
+++ b/src/catch2/internal/catch_exception_translator_registry.cpp
@@ -31,8 +31,7 @@ namespace Catch {
}
#endif //!defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
- ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry() {
- }
+ ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry() = default;
void ExceptionTranslatorRegistry::registerTranslator( Detail::unique_ptr<IExceptionTranslator>&& translator ) {
m_translators.push_back( CATCH_MOVE( translator ) );
diff --git a/src/catch2/internal/catch_leak_detector.cpp b/src/catch2/internal/catch_leak_detector.cpp
index 7389eaf7..691bc772 100644
--- a/src/catch2/internal/catch_leak_detector.cpp
+++ b/src/catch2/internal/catch_leak_detector.cpp
@@ -29,7 +29,7 @@ namespace Catch {
#else // ^^ Windows crt debug heap enabled // Windows crt debug heap disabled vv
- Catch::LeakDetector::LeakDetector() {}
+ Catch::LeakDetector::LeakDetector() = default;
#endif // CATCH_CONFIG_WINDOWS_CRTDBG
diff --git a/src/catch2/internal/catch_tag_alias_registry.cpp b/src/catch2/internal/catch_tag_alias_registry.cpp
index b7c6b9ec..4fd0d557 100644
--- a/src/catch2/internal/catch_tag_alias_registry.cpp
+++ b/src/catch2/internal/catch_tag_alias_registry.cpp
@@ -13,7 +13,7 @@
namespace Catch {
- TagAliasRegistry::~TagAliasRegistry() {}
+ TagAliasRegistry::~TagAliasRegistry() = default;
TagAlias const* TagAliasRegistry::find( std::string const& alias ) const {
auto it = m_registry.find( alias );
diff --git a/src/catch2/reporters/catch_reporter_automake.cpp b/src/catch2/reporters/catch_reporter_automake.cpp
index 993b594b..5e506a6b 100644
--- a/src/catch2/reporters/catch_reporter_automake.cpp
+++ b/src/catch2/reporters/catch_reporter_automake.cpp
@@ -12,7 +12,7 @@
namespace Catch {
- AutomakeReporter::~AutomakeReporter() {}
+ AutomakeReporter::~AutomakeReporter() = default;
void AutomakeReporter::testCaseEnded(TestCaseStats const& _testCaseStats) {
// Possible values to emit are PASS, XFAIL, SKIP, FAIL, XPASS and ERROR.
diff --git a/src/catch2/reporters/catch_reporter_compact.cpp b/src/catch2/reporters/catch_reporter_compact.cpp
index 88acb6a4..0f855944 100644
--- a/src/catch2/reporters/catch_reporter_compact.cpp
+++ b/src/catch2/reporters/catch_reporter_compact.cpp
@@ -249,6 +249,6 @@ private:
StreamingReporterBase::testRunEnded( _testRunStats );
}
- CompactReporter::~CompactReporter() {}
+ CompactReporter::~CompactReporter() = default;
} // end namespace Catch
diff --git a/src/catch2/reporters/catch_reporter_teamcity.cpp b/src/catch2/reporters/catch_reporter_teamcity.cpp
index 32072800..38aa55a6 100644
--- a/src/catch2/reporters/catch_reporter_teamcity.cpp
+++ b/src/catch2/reporters/catch_reporter_teamcity.cpp
@@ -45,7 +45,7 @@ namespace Catch {
} // end anonymous namespace
- TeamCityReporter::~TeamCityReporter() {}
+ TeamCityReporter::~TeamCityReporter() = default;
void TeamCityReporter::testRunStarting( TestRunInfo const& runInfo ) {
m_stream << "##teamcity[testSuiteStarted name='" << escape( runInfo.name )