TextEditor: Use member initialization in TextEditorFactoryPrivate

Change-Id: I97a077a922208545b5a6c7dc07c4de667fa0d833
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-07-25 12:32:45 +02:00
parent 95617ff971
commit 3ec59b46df

View File

@@ -8136,13 +8136,7 @@ public:
TextEditorFactoryPrivate(TextEditorFactory *parent) :
q(parent),
m_widgetCreator([]() { return new TextEditorWidget; }),
m_editorCreator([]() { return new BaseTextEditor; }),
m_completionAssistProvider(0),
m_useGenericHighlighter(false),
m_duplicatedSupported(true),
m_codeFoldingSupported(false),
m_paranthesesMatchinEnabled(false),
m_marksVisible(false)
m_editorCreator([]() { return new BaseTextEditor; })
{}
BaseTextEditor *duplicateTextEditor(BaseTextEditor *other)
@@ -8163,12 +8157,12 @@ public:
TextEditorFactory::SyntaxHighLighterCreator m_syntaxHighlighterCreator;
CommentDefinition m_commentDefinition;
QList<BaseHoverHandler *> m_hoverHandlers; // owned
CompletionAssistProvider * m_completionAssistProvider; // owned
bool m_useGenericHighlighter;
bool m_duplicatedSupported;
bool m_codeFoldingSupported;
bool m_paranthesesMatchinEnabled;
bool m_marksVisible;
CompletionAssistProvider * m_completionAssistProvider = nullptr; // owned
bool m_useGenericHighlighter = false;
bool m_duplicatedSupported = true;
bool m_codeFoldingSupported = false;
bool m_paranthesesMatchinEnabled = false;
bool m_marksVisible = false;
};
} /// namespace Internal