forked from qt-creator/qt-creator
DiffEditor: Merge the two construction paths
Change-Id: I3c0c750517c9000dffe13de724b063008fd426b7 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "diffeditor.h"
|
||||
#include "diffeditorconstants.h"
|
||||
#include "diffeditordocument.h"
|
||||
#include "diffeditorfactory.h"
|
||||
#include "sidebysidediffeditorwidget.h"
|
||||
|
||||
@@ -48,7 +49,7 @@ DiffEditorFactory::DiffEditorFactory(QObject *parent)
|
||||
|
||||
Core::IEditor *DiffEditorFactory::createEditor()
|
||||
{
|
||||
return new DiffEditor();
|
||||
return new DiffEditor(QSharedPointer<DiffEditorDocument>(new DiffEditorDocument));
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user