summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-05 15:39:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-05 15:40:06 +0200
commitf92e6b78505ee4bcb148cd07cdae984279b8f6ca (patch)
tree6939511597746efe34bbc172763ddccdf3d03639 /api
parent6fd73e314dbf6d52fb0edb2118265630619bc817 (diff)
api: delete pointless delete move ctor
Diffstat (limited to 'api')
-rw-r--r--api/plugin-api.hpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp
index 72175d0a..52776986 100644
--- a/api/plugin-api.hpp
+++ b/api/plugin-api.hpp
@@ -47,17 +47,20 @@ private slots:
#define OTR_PLUGIN_EXPORT OTR_GENERIC_EXPORT
#define OPENTRACK_DECLARE_PLUGIN_INTERNAL(ctor_class, ctor_ret_class, metadata_class, dialog_class, dialog_ret_class) \
- extern "C" OTR_PLUGIN_EXPORT ctor_ret_class* GetConstructor(void) \
- { \
- return new ctor_class; \
- } \
- extern "C" OTR_PLUGIN_EXPORT Metadata_* GetMetadata(void) \
- { \
- return new metadata_class; \
- } \
- extern "C" OTR_PLUGIN_EXPORT dialog_ret_class* GetDialog(void) \
- { \
- return new dialog_class; \
+ extern "C" \
+ { \
+ OTR_PLUGIN_EXPORT ctor_ret_class* GetConstructor(void) \
+ { \
+ return new ctor_class; \
+ } \
+ OTR_PLUGIN_EXPORT Metadata_* GetMetadata(void) \
+ { \
+ return new metadata_class; \
+ } \
+ OTR_PLUGIN_EXPORT dialog_ret_class* GetDialog(void) \
+ { \
+ return new dialog_class; \
+ } \
}
// implement this in all plugins
@@ -107,7 +110,6 @@ struct OTR_API_EXPORT module_status_mixin
struct OTR_API_EXPORT IFilter : module_status_mixin
{
IFilter(const IFilter&) = delete;
- IFilter(IFilter&&) = delete;
IFilter& operator=(const IFilter&) = delete;
IFilter();
@@ -142,7 +144,6 @@ struct OTR_API_EXPORT IProtocol : module_status_mixin
IProtocol();
IProtocol(const IProtocol&) = delete;
- IProtocol(IProtocol&&) = delete;
IProtocol& operator=(const IProtocol&) = delete;
// optional destructor
@@ -189,7 +190,6 @@ struct OTR_API_EXPORT ITracker
static module_status error(const QString& error);
ITracker(const ITracker&) = delete;
- ITracker(ITracker&&) = delete;
ITracker& operator=(const ITracker&) = delete;
};
@@ -241,7 +241,6 @@ struct OTR_API_EXPORT IExtension : module_status_mixin
virtual void process_finished(Pose&) {}
IExtension(const IExtension&) = delete;
- IExtension(IExtension&&) = delete;
IExtension& operator=(const IExtension&) = delete;
};