forked from qt-creator/qt-creator
Avoid going through ICore when it's not necessary
Many singletons have their own instance() method, in which case there is no need to use ICore::instance() to get access to them.
This commit is contained in:
@@ -85,7 +85,7 @@ bool CorePlugin::initialize(const QStringList & /*arguments*/, QString *error_me
|
||||
m_welcomeMode = new WelcomeMode;
|
||||
addObject(m_welcomeMode);
|
||||
|
||||
EditorManager *editorManager = qobject_cast<EditorManager*>(m_mainWindow->editorManager());
|
||||
EditorManager *editorManager = m_mainWindow->editorManager();
|
||||
m_editMode = new EditMode(editorManager);
|
||||
addObject(m_editMode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user