aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-01-20 12:28:36 +0100
committerhjk <hjk@qt.io>2023-01-20 12:13:10 +0000
commit118b84ffd6975bc1c7b2687d0c0dab016fce3cbb (patch)
tree96e19943604af24b5ade0c73e81ea887e51d2ba9 /src/plugins/scxmleditor
parent013ad1345e53fe9a52217a04445a479d90653a8d (diff)
Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r--src/plugins/scxmleditor/scxmleditorplugin.cpp7
-rw-r--r--src/plugins/scxmleditor/scxmleditorplugin.h2
2 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/scxmleditor/scxmleditorplugin.cpp b/src/plugins/scxmleditor/scxmleditorplugin.cpp
index 95a5544fb93..f2a0de589e2 100644
--- a/src/plugins/scxmleditor/scxmleditorplugin.cpp
+++ b/src/plugins/scxmleditor/scxmleditorplugin.cpp
@@ -23,14 +23,9 @@ ScxmlEditorPlugin::~ScxmlEditorPlugin()
delete d;
}
-bool ScxmlEditorPlugin::initialize(const QStringList &arguments, QString *errorString)
+void ScxmlEditorPlugin::initialize()
{
- Q_UNUSED(arguments)
- Q_UNUSED(errorString)
-
d = new ScxmlEditorPluginPrivate;
-
- return true;
}
void ScxmlEditorPlugin::extensionsInitialized()
diff --git a/src/plugins/scxmleditor/scxmleditorplugin.h b/src/plugins/scxmleditor/scxmleditorplugin.h
index 87d5c90135a..485ba92def0 100644
--- a/src/plugins/scxmleditor/scxmleditorplugin.h
+++ b/src/plugins/scxmleditor/scxmleditorplugin.h
@@ -16,7 +16,7 @@ public:
~ScxmlEditorPlugin();
private:
- bool initialize(const QStringList &arguments, QString *errorString) final;
+ void initialize() final;
void extensionsInitialized() final;
class ScxmlEditorPluginPrivate *d = nullptr;