From f5b0bd32b20fc1e37f95b412252b597b9936dda7 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 31 Jul 2014 14:44:42 +0200 Subject: TextEditor: Remove one stack of EditorWidget constructors There are conceptually only two: one that operates a new document, and one that shares one. Being explicit makes moving data over to the Editor hierarchy easier. Convenience can be re-added there, later. Change-Id: I9b34ff26628c99ffff01201dcf99332d5e7253e9 Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp') diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp index 03619884bc..b0781dac35 100644 --- a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp +++ b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp @@ -104,7 +104,7 @@ public: // Open file auto textDocument = new TextEditor::BaseTextDocument; textDocument->setId(Core::Constants::K_DEFAULT_TEXT_EDITOR_ID); - TextEditor::BaseTextEditorWidget editorWidget(textDocument); + TextEditor::BaseTextEditorWidget editorWidget(textDocument, 0); editorWidget.setupAsPlainEditor(); QString error; editorWidget.open(&error, document->fileName(), document->fileName()); -- cgit v1.2.1