forked from qt-creator/qt-creator
use QSharedPointer instead of QRefCountPointer
Change-Id: Ie670448bf924e02720eae6db33f2a346e8ac0001 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
David Schulz
parent
4435d55dee
commit
4a32f1d821
@@ -37,6 +37,7 @@
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QSharedPointer>
|
||||
|
||||
using namespace TextEditor;
|
||||
|
||||
@@ -124,7 +125,7 @@ ProjectFilesEditorWidget::ProjectFilesEditorWidget(QWidget *parent, ProjectFiles
|
||||
m_factory(factory),
|
||||
m_actionHandler(handler)
|
||||
{
|
||||
BaseTextDocument *doc = new BaseTextDocument();
|
||||
QSharedPointer<BaseTextDocument> doc(new BaseTextDocument());
|
||||
setBaseTextDocument(doc);
|
||||
|
||||
handler->setupActions(this);
|
||||
|
||||
Reference in New Issue
Block a user