diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp index 8c729f9bdc0..f6406e1afc2 100644 --- a/src/plugins/texteditor/texteditorplugin.cpp +++ b/src/plugins/texteditor/texteditorplugin.cpp @@ -71,8 +71,6 @@ static const char kCurrentDocumentFontSize[] = "CurrentDocument:FontSize"; static TextEditorPlugin *m_instance = 0; TextEditorPlugin::TextEditorPlugin() - : m_settings(0), - m_lineNumberFilter(0) { QTC_ASSERT(!m_instance, return); m_instance = this; diff --git a/src/plugins/texteditor/texteditorplugin.h b/src/plugins/texteditor/texteditorplugin.h index 5cabb2fc95e..4dc3f3b724e 100644 --- a/src/plugins/texteditor/texteditorplugin.h +++ b/src/plugins/texteditor/texteditorplugin.h @@ -60,10 +60,10 @@ private: void updateSearchResultsTabWidth(const TextEditor::TabSettings &tabSettings); void updateCurrentSelection(const QString &text); - TextEditorSettings *m_settings; - LineNumberFilter *m_lineNumberFilter; - OutlineFactory *m_outlineFactory; - TextMarkRegistry *m_baseTextMarkRegistry; + TextEditorSettings *m_settings = nullptr; + LineNumberFilter *m_lineNumberFilter = nullptr; + OutlineFactory *m_outlineFactory = nullptr; + TextMarkRegistry *m_baseTextMarkRegistry = nullptr; #ifdef WITH_TESTS private slots: