diff options
Diffstat (limited to 'src/plugins/perforce/perforceplugin.cpp')
-rw-r--r-- | src/plugins/perforce/perforceplugin.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp index d97e4fc2a81..4a2b46755be 100644 --- a/src/plugins/perforce/perforceplugin.cpp +++ b/src/plugins/perforce/perforceplugin.cpp @@ -189,11 +189,11 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *er m_settings.fromSettings(ICore::settings()); - addAutoReleasedObject(new SettingsPage); + new SettingsPage(this); // Editor factories - addAutoReleasedObject(new VcsSubmitEditorFactory(&submitParameters, - []() { return new PerforceSubmitEditor(&submitParameters); })); + new VcsSubmitEditorFactory(&submitParameters, + []() { return new PerforceSubmitEditor(&submitParameters); }, this); const auto describeFunc = [this](const QString &source, const QString &n) { describe(source, n); @@ -201,11 +201,10 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *er const int editorCount = sizeof(editorParameters) / sizeof(editorParameters[0]); const auto widgetCreator = []() { return new PerforceEditorWidget; }; for (int i = 0; i < editorCount; i++) - addAutoReleasedObject(new VcsEditorFactory(editorParameters + i, widgetCreator, describeFunc)); + new VcsEditorFactory(editorParameters + i, widgetCreator, describeFunc, this); const QString prefix = QLatin1String("p4"); - m_commandLocator = new CommandLocator("Perforce", prefix, prefix); - addAutoReleasedObject(m_commandLocator); + m_commandLocator = new CommandLocator("Perforce", prefix, prefix, this); ActionContainer *mtools = ActionManager::actionContainer(Core::Constants::M_TOOLS); |