From 5efd576020a5407cd09a86112e5655e621e9d53f Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 8 Feb 2018 09:42:38 +0100 Subject: ScxmlEditor: Avoid use of global object pool Including some code cosmetics. Change-Id: I6d7f11404ea489020d0c74e43cbe25cdcaa48e85 Reviewed-by: Christian Stenger --- src/plugins/scxmleditor/scxmleditorplugin.cpp | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'src/plugins/scxmleditor/scxmleditorplugin.cpp') diff --git a/src/plugins/scxmleditor/scxmleditorplugin.cpp b/src/plugins/scxmleditor/scxmleditorplugin.cpp index 30bddf6b2f..d8b1514a17 100644 --- a/src/plugins/scxmleditor/scxmleditorplugin.cpp +++ b/src/plugins/scxmleditor/scxmleditorplugin.cpp @@ -24,34 +24,21 @@ ****************************************************************************/ #include "scxmleditorplugin.h" -#include "scxmleditorconstants.h" #include "scxmleditorfactory.h" -#include #include -#include -#include - -#include -#include -#include -#include - -#include using namespace Core; -using namespace ScxmlEditor::Internal; -ScxmlEditorPlugin::ScxmlEditorPlugin() -{ -} +namespace ScxmlEditor { +namespace Internal { bool ScxmlEditorPlugin::initialize(const QStringList &arguments, QString *errorString) { Q_UNUSED(arguments) Q_UNUSED(errorString) - addAutoReleasedObject(new ScxmlEditorFactory); + (void) new ScxmlEditorFactory(this); return true; } @@ -61,7 +48,5 @@ void ScxmlEditorPlugin::extensionsInitialized() DesignMode::setDesignModeIsRequired(); } -ExtensionSystem::IPlugin::ShutdownFlag ScxmlEditorPlugin::aboutToShutdown() -{ - return SynchronousShutdown; -} +} // Internal +} // ScxmlEditor -- cgit v1.2.1