diff options
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r-- | api/plugin-api.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp index 0ce321c7..5a485d62 100644 --- a/api/plugin-api.cpp +++ b/api/plugin-api.cpp @@ -6,16 +6,16 @@ using namespace plugin_api::detail; // these exist so that vtable is emitted in a single compilation unit, not all of them. -Metadata_::~Metadata_() {} -IFilter::~IFilter() {} -IProtocol::~IProtocol() {} -ITracker::~ITracker() {} -IExtension::~IExtension() {} +Metadata_::~Metadata_() = default; +IFilter::~IFilter() = default; +IProtocol::~IProtocol() = default; +ITracker::~ITracker() = default; +IExtension::~IExtension() = default; void ITrackerDialog::register_tracker(ITracker*) {} void ITrackerDialog::unregister_tracker() {} -BaseDialog::BaseDialog() {} +BaseDialog::BaseDialog() = default; void BaseDialog::closeEvent(QCloseEvent*) { @@ -38,13 +38,13 @@ module_status ITracker::error(const QString& error) return module_status(error); } -Metadata_::Metadata_() {} -IFilter::IFilter() {} -IFilterDialog::IFilterDialog() {} -IProtocol::IProtocol() {} -IProtocolDialog::IProtocolDialog() {} -ITracker::ITracker() {} -ITrackerDialog::ITrackerDialog() {} +Metadata_::Metadata_() = default; +IFilter::IFilter() = default; +IFilterDialog::IFilterDialog() = default; +IProtocol::IProtocol() = default; +IProtocolDialog::IProtocolDialog() = default; +ITracker::ITracker() = default; +ITrackerDialog::ITrackerDialog() = default; void BaseDialog::done(int) { @@ -55,9 +55,7 @@ void BaseDialog::done(int) } } -IExtensionDialog::~IExtensionDialog() -{ -} +IExtensionDialog::~IExtensionDialog() = default; bool module_status::is_ok() const { @@ -66,10 +64,13 @@ bool module_status::is_ok() const module_status::module_status(QString error) : error(std::move(error)) {} -module_status module_status_mixin::status_ok() { return module_status(); } +module_status module_status_mixin::status_ok() { return {}; } module_status module_status_mixin::error(const QString& error) { return module_status(error.isEmpty() ? "Unknown error" : error); } + +Metadata::Metadata() = default; +Metadata::~Metadata() = default; |