summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-support.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:33:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:33:08 +0100
commita2aa4d5332d59d41637434e77dda1dd980880bf8 (patch)
tree613b81c8b03ff133c993fbfd8a53299d26528967 /api/plugin-support.hpp
parent6c64d4be1ab7a8ddb1731595dcfa212253cdfe0f (diff)
api: use braced initializers
Diffstat (limited to 'api/plugin-support.hpp')
-rw-r--r--api/plugin-support.hpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp
index 9cff1a2e..2c1b7725 100644
--- a/api/plugin-support.hpp
+++ b/api/plugin-support.hpp
@@ -48,15 +48,11 @@ struct dylib final
};
dylib(const QString& filename_, Type t) :
- type(Invalid),
full_filename(filename_),
- module_name(trim_filename(filename_)),
- Dialog(nullptr),
- Constructor(nullptr),
- Meta(nullptr)
+ module_name(trim_filename(filename_))
{
// otherwise dlopen opens the calling executable
- if (filename_.size() == 0 || module_name.size() == 0)
+ if (filename_.isEmpty() || module_name.isEmpty())
return;
handle.setFileName(filename_);
@@ -136,16 +132,16 @@ struct dylib final
return ret;
}
- Type type;
+ Type type{Invalid};
QString full_filename;
QString module_name;
QIcon icon;
QString name;
- module_ctor_t Dialog;
- module_ctor_t Constructor;
- module_metadata_t Meta;
+ module_ctor_t Dialog{nullptr};
+ module_ctor_t Constructor{nullptr};
+ module_metadata_t Meta{nullptr};
private:
QLibrary handle;