diff options
author | hjk <hjk121@nokiamail.com> | 2014-08-18 17:49:04 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-08-19 09:19:33 +0200 |
commit | d2ec7d80d92952262b164068b52f63e39e259f7c (patch) | |
tree | e94901bd52bc8ee96f7c8685633dab25d0bb6d59 /src/plugins/pythoneditor/pythoneditorfactory.cpp | |
parent | 2c5231b46881009625350cd5fe7383f12a323fa7 (diff) | |
download | qt-creator-d2ec7d80d92952262b164068b52f63e39e259f7c.tar.gz |
TextEditor: Merge the two sets of *EditorWidget constructors
Change-Id: I45d87d0be722ac36d64af222f03f8cb76242c9df
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorfactory.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorfactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.cpp b/src/plugins/pythoneditor/pythoneditorfactory.cpp index 8a3c19e232..25089e6fb0 100644 --- a/src/plugins/pythoneditor/pythoneditorfactory.cpp +++ b/src/plugins/pythoneditor/pythoneditorfactory.cpp @@ -60,10 +60,10 @@ EditorFactory::EditorFactory(QObject *parent) Core::IEditor *EditorFactory::createEditor() { - auto doc = new BaseTextDocument; + BaseTextDocumentPtr doc(new BaseTextDocument); doc->setId(Constants::C_PYTHONEDITOR_ID); doc->setIndenter(new PythonIndenter); - PythonEditorWidget *widget = new PythonEditorWidget(doc, 0); + PythonEditorWidget *widget = new PythonEditorWidget(doc); TextEditor::TextEditorSettings::initializeEditor(widget); return widget->editor(); |