diff options
author | hjk <hjk@qt.io> | 2018-02-08 09:42:38 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-02-08 09:10:54 +0000 |
commit | 5efd576020a5407cd09a86112e5655e621e9d53f (patch) | |
tree | b3f54e4d7323550f10c8ec289ba09a20ba24f73d /src/plugins/scxmleditor/scxmleditorplugin.cpp | |
parent | abe57f73b4acbeabe144a987b0b128c498e5d482 (diff) | |
download | qt-creator-5efd576020a5407cd09a86112e5655e621e9d53f.tar.gz |
ScxmlEditor: Avoid use of global object pool
Including some code cosmetics.
Change-Id: I6d7f11404ea489020d0c74e43cbe25cdcaa48e85
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/scxmleditorplugin.cpp')
-rw-r--r-- | src/plugins/scxmleditor/scxmleditorplugin.cpp | 25 |
1 files changed, 5 insertions, 20 deletions
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 <coreplugin/coreconstants.h> #include <coreplugin/designmode.h> -#include <coreplugin/icontext.h> -#include <coreplugin/icore.h> - -#include <QAction> -#include <QMainWindow> -#include <QMenu> -#include <QMessageBox> - -#include <QtPlugin> 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 |