summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-02 00:50:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-02 00:50:04 +0100
commit6d40b2fcdbc2b66fcb0a62b48151035e3aa293d5 (patch)
treef7ca40d36c9df79adaf0089ddeb9fdd7ba7c9e5c /api/plugin-api.cpp
parent615ff19cd9c0532084fb5ce64005d99d0b2f19f1 (diff)
api/plugin: add explicit to module_status error ctor
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r--api/plugin-api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp
index 3630beae..b2329f4b 100644
--- a/api/plugin-api.cpp
+++ b/api/plugin-api.cpp
@@ -56,7 +56,8 @@ bool module_status::is_ok() const
}
module_status_mixin::~module_status_mixin() = default;
-module_status::module_status(QString error) : error(std::move(error)) {}
+module_status::module_status(const QString& error) : error(error) {}
+module_status::module_status() = default;
module_status module_status_mixin::status_ok() { return {}; }
module_status module_status_mixin::error(const QString& error)