diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-02 00:50:04 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-02 00:50:04 +0100 |
commit | 6d40b2fcdbc2b66fcb0a62b48151035e3aa293d5 (patch) | |
tree | f7ca40d36c9df79adaf0089ddeb9fdd7ba7c9e5c /api | |
parent | 615ff19cd9c0532084fb5ce64005d99d0b2f19f1 (diff) |
api/plugin: add explicit to module_status error ctor
Diffstat (limited to 'api')
-rw-r--r-- | api/plugin-api.cpp | 3 | ||||
-rw-r--r-- | api/plugin-api.hpp | 3 |
2 files changed, 4 insertions, 2 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) diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index 1bfce7d5..137ee46d 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -97,7 +97,8 @@ struct OTR_API_EXPORT module_status final QString error; bool is_ok() const; - module_status(QString error = {}); + module_status(); + explicit module_status(const QString& error); }; /* |