Clarify bunch of default, out of line destructors

This commit is contained in:
Martin Hořeňovský committed 2021-05-12 23:55:46 +02:00
1 parent d86cb5f95d
commit b36f8daaad
13 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ namespace Catch {
struct IContext
{
virtual ~IContext();
virtual ~IContext(); // = default
virtual IResultCapture* getResultCapture() = 0;
virtual IRunner* getRunner() = 0;
@@ -25,7 +25,7 @@ namespace Catch {
struct IMutableContext : IContext
{
virtual ~IMutableContext();
virtual ~IMutableContext(); // = default
virtual void setResultCapture( IResultCapture* resultCapture ) = 0;
virtual void setRunner( IRunner* runner ) = 0;
virtual void setConfig( IConfig const* config ) = 0;
@@ -13,7 +13,7 @@
namespace Catch {
IMutableEnumValuesRegistry::~IMutableEnumValuesRegistry() {}
IMutableEnumValuesRegistry::~IMutableEnumValuesRegistry() = default;
namespace Detail {
+1 -1
View File
@@ -20,7 +20,7 @@ namespace Catch {
}
}
ISingleton::~ISingleton() {}
ISingleton::~ISingleton() = default;
void addSingleton(ISingleton* singleton ) {
getSingletons()->push_back( singleton );
+1 -1
View File
@@ -11,7 +11,7 @@
namespace Catch {
struct ISingleton {
virtual ~ISingleton();
virtual ~ISingleton(); // = default
};
+1 -1
View File
@@ -22,7 +22,7 @@ namespace Catch {
std::ostream& clog();
struct IStream {
virtual ~IStream();
virtual ~IStream(); // = default
virtual std::ostream& stream() const = 0;
};
@@ -46,7 +46,7 @@ namespace Catch {
<< "\tRedefined at: " << lineInfo );
}
ITagAliasRegistry::~ITagAliasRegistry() {}
ITagAliasRegistry::~ITagAliasRegistry() = default;
ITagAliasRegistry const& ITagAliasRegistry::get() {
return getRegistryHub().getTagAliasRegistry();
@@ -51,7 +51,7 @@ namespace TestCaseTracking {
return m_nameAndLocation;
}
virtual ~ITracker();
virtual ~ITracker(); // = default
// dynamic queries