forked from qt-creator/qt-creator
TextEditor: Merge the two sets of *EditorWidget constructors
Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -97,7 +97,7 @@ CppEditorFactory::CppEditorFactory(CppEditorPlugin *owner) :
|
||||
|
||||
IEditor *CppEditorFactory::createEditor()
|
||||
{
|
||||
CppEditorWidget *editor = new CppEditorWidget();
|
||||
CppEditorWidget *editor = new CppEditorWidget(BaseTextDocumentPtr(new CPPEditorDocument));
|
||||
m_owner->initializeEditor(editor);
|
||||
return editor->editor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user