summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/editormanager/editormanager.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-07 14:41:57 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-08 11:46:11 +0100
commitf9ce335a6dffb2866cfaa6d97c0430bee6e34e22 (patch)
tree31e4af6ae75fb054ae51816014e1a877ae3b5463 /src/plugins/coreplugin/editormanager/editormanager.cpp
parent236ea9efb912c90cf3ecd6b03006f40e8da4d5f2 (diff)
downloadqt-creator-f9ce335a6dffb2866cfaa6d97c0430bee6e34e22.tar.gz
Editors: Remove useless parent widget argument from create/duplicate
It was never called with a sensible value anyhow, and only complicates things. Change-Id: I005848700b6c00114d91495670d4a0e15a2d2e64 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/coreplugin/editormanager/editormanager.cpp')
-rw-r--r--src/plugins/coreplugin/editormanager/editormanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp
index 18a6feb049..4c2e9c9bbd 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -1416,7 +1416,7 @@ IEditor *EditorManager::createEditor(const Id &editorId, const QString &fileName
return 0;
}
- IEditor *editor = factories.front()->createEditor(m_instance);
+ IEditor *editor = factories.front()->createEditor();
if (editor)
connect(editor->document(), SIGNAL(changed()), m_instance, SLOT(handleDocumentStateChange()));
if (editor)
@@ -2410,7 +2410,7 @@ Core::IEditor *EditorManager::duplicateEditor(Core::IEditor *editor)
if (!editor->duplicateSupported())
return 0;
- IEditor *duplicate = editor->duplicate(0);
+ IEditor *duplicate = editor->duplicate();
duplicate->restoreState(editor->saveState());
emit m_instance->editorCreated(duplicate, duplicate->document()->filePath());
addEditor(duplicate);