forked from qt-creator/qt-creator
Welcome: Remove one unneeded usage of global object pool
Change-Id: Iaf94a26eb49c49648ac89f7e463b8849e86cba9e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -127,12 +127,11 @@ class WelcomePlugin : public ExtensionSystem::IPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Welcome.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Welcome.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WelcomePlugin() {}
|
~WelcomePlugin() final { delete m_welcomeMode; }
|
||||||
|
|
||||||
bool initialize(const QStringList &, QString *) final
|
bool initialize(const QStringList &, QString *) final
|
||||||
{
|
{
|
||||||
m_welcomeMode = new WelcomeMode;
|
m_welcomeMode = new WelcomeMode;
|
||||||
addAutoReleasedObject(m_welcomeMode);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user