forked from qt-creator/qt-creator
QmlJSEditor: use direct member initialization
Change-Id: I03aada10107a9d80d920d18c92df7ec36e6a22d4 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -105,10 +105,7 @@ namespace Internal {
|
||||
|
||||
QmlJSEditorWidget::QmlJSEditorWidget()
|
||||
{
|
||||
m_outlineCombo = 0;
|
||||
m_contextPane = 0;
|
||||
m_findReferences = new FindReferences(this);
|
||||
|
||||
setLanguageSettingsId(QmlJSTools::Constants::QML_JS_SETTINGS_ID);
|
||||
}
|
||||
|
||||
@@ -142,7 +139,6 @@ void QmlJSEditorWidget::finalizeInitialization()
|
||||
&m_contextPaneTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
||||
connect(m_contextPane, &IContextPane::closed, this, &QmlJSEditorWidget::showTextMarker);
|
||||
}
|
||||
m_oldCursorPosition = -1;
|
||||
|
||||
connect(this->document(), &QTextDocument::modificationChanged,
|
||||
this, &QmlJSEditorWidget::modificationChanged);
|
||||
|
||||
Reference in New Issue
Block a user