mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Always default empty destructors
This commit is contained in:
parent
ed4acded38
commit
b593be2116
@ -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 ) {
|
||||
|
@ -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 ) );
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -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.
|
||||
|
@ -249,6 +249,6 @@ private:
|
||||
StreamingReporterBase::testRunEnded( _testRunStats );
|
||||
}
|
||||
|
||||
CompactReporter::~CompactReporter() {}
|
||||
CompactReporter::~CompactReporter() = default;
|
||||
|
||||
} // end namespace Catch
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user