forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user