ScxmlEditor: Avoid use of global object pool

Including some code cosmetics.

Change-Id: I6d7f11404ea489020d0c74e43cbe25cdcaa48e85
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-02-08 09:42:38 +01:00
parent abe57f73b4
commit 5efd576020
4 changed files with 12 additions and 27 deletions

View File

@@ -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