forked from qt-creator/qt-creator
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -76,8 +76,7 @@ SourceAgentPrivate::SourceAgentPrivate()
|
||||
|
||||
SourceAgentPrivate::~SourceAgentPrivate()
|
||||
{
|
||||
if (editor)
|
||||
EditorManager::instance()->closeEditor(editor);
|
||||
EditorManager::closeEditor(editor);
|
||||
editor = 0;
|
||||
delete locationMark;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user