forked from qt-creator/qt-creator
Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -149,10 +149,8 @@ CMakeProjectPlugin::~CMakeProjectPlugin()
|
||||
delete d;
|
||||
}
|
||||
|
||||
bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
|
||||
void CMakeProjectPlugin::initialize()
|
||||
{
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
d = new CMakeProjectPluginPrivate;
|
||||
projectTypeSpecificSettings()->readSettings(ICore::settings());
|
||||
|
||||
@@ -195,8 +193,6 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
|
||||
|
||||
d->cmakeFormatter.initialize();
|
||||
d->updateActions();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void CMakeProjectPlugin::extensionsInitialized()
|
||||
|
||||
@@ -36,7 +36,7 @@ private slots:
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
||||
void initialize() final;
|
||||
void extensionsInitialized() final;
|
||||
|
||||
void updateContextActions(ProjectExplorer::Node *node);
|
||||
|
||||
Reference in New Issue
Block a user