diff options
author | hjk <hjk@qt.io> | 2023-01-20 12:28:36 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-01-20 12:13:10 +0000 |
commit | 118b84ffd6975bc1c7b2687d0c0dab016fce3cbb (patch) | |
tree | 96e19943604af24b5ade0c73e81ea887e51d2ba9 /src/plugins/diffeditor | |
parent | 013ad1345e53fe9a52217a04445a479d90653a8d (diff) | |
download | qt-creator-118b84ffd6975bc1c7b2687d0c0dab016fce3cbb.tar.gz |
Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/diffeditor')
-rw-r--r-- | src/plugins/diffeditor/diffeditorplugin.cpp | 7 | ||||
-rw-r--r-- | src/plugins/diffeditor/diffeditorplugin.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/diffeditor/diffeditorplugin.cpp b/src/plugins/diffeditor/diffeditorplugin.cpp index 44c824c3de..e18a0e2797 100644 --- a/src/plugins/diffeditor/diffeditorplugin.cpp +++ b/src/plugins/diffeditor/diffeditorplugin.cpp @@ -524,14 +524,9 @@ DiffEditorPlugin::~DiffEditorPlugin() s_instance = nullptr; } -bool DiffEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage) +void DiffEditorPlugin::initialize() { d = new DiffEditorPluginPrivate; - - Q_UNUSED(arguments) - Q_UNUSED(errorMessage) - - return true; } FutureSynchronizer *DiffEditorPlugin::futureSynchronizer() diff --git a/src/plugins/diffeditor/diffeditorplugin.h b/src/plugins/diffeditor/diffeditorplugin.h index 9e70356f4d..66849a7387 100644 --- a/src/plugins/diffeditor/diffeditorplugin.h +++ b/src/plugins/diffeditor/diffeditorplugin.h @@ -32,7 +32,7 @@ public: DiffEditorPlugin(); ~DiffEditorPlugin(); - bool initialize(const QStringList &arguments, QString *errorMessage) final; + void initialize() final; static Utils::FutureSynchronizer *futureSynchronizer(); |