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:
@@ -101,14 +101,9 @@ QmlJSEditorPlugin::~QmlJSEditorPlugin()
|
||||
m_instance = nullptr;
|
||||
}
|
||||
|
||||
bool QmlJSEditorPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
void QmlJSEditorPlugin::initialize()
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
d = new QmlJSEditorPluginPrivate;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
QmlJSEditorPluginPrivate::QmlJSEditorPluginPrivate()
|
||||
|
||||
@@ -27,7 +27,7 @@ public:
|
||||
static QuickToolBar *quickToolBar();
|
||||
|
||||
private:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
||||
void initialize() final;
|
||||
void extensionsInitialized() final;
|
||||
ShutdownFlag aboutToShutdown() final;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user