forked from qt-creator/qt-creator
TextEditor: Use member initialization in TextEditorFactoryPrivate
Change-Id: I97a077a922208545b5a6c7dc07c4de667fa0d833 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -8136,13 +8136,7 @@ public:
|
|||||||
TextEditorFactoryPrivate(TextEditorFactory *parent) :
|
TextEditorFactoryPrivate(TextEditorFactory *parent) :
|
||||||
q(parent),
|
q(parent),
|
||||||
m_widgetCreator([]() { return new TextEditorWidget; }),
|
m_widgetCreator([]() { return new TextEditorWidget; }),
|
||||||
m_editorCreator([]() { return new BaseTextEditor; }),
|
m_editorCreator([]() { return new BaseTextEditor; })
|
||||||
m_completionAssistProvider(0),
|
|
||||||
m_useGenericHighlighter(false),
|
|
||||||
m_duplicatedSupported(true),
|
|
||||||
m_codeFoldingSupported(false),
|
|
||||||
m_paranthesesMatchinEnabled(false),
|
|
||||||
m_marksVisible(false)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
BaseTextEditor *duplicateTextEditor(BaseTextEditor *other)
|
BaseTextEditor *duplicateTextEditor(BaseTextEditor *other)
|
||||||
@@ -8163,12 +8157,12 @@ public:
|
|||||||
TextEditorFactory::SyntaxHighLighterCreator m_syntaxHighlighterCreator;
|
TextEditorFactory::SyntaxHighLighterCreator m_syntaxHighlighterCreator;
|
||||||
CommentDefinition m_commentDefinition;
|
CommentDefinition m_commentDefinition;
|
||||||
QList<BaseHoverHandler *> m_hoverHandlers; // owned
|
QList<BaseHoverHandler *> m_hoverHandlers; // owned
|
||||||
CompletionAssistProvider * m_completionAssistProvider; // owned
|
CompletionAssistProvider * m_completionAssistProvider = nullptr; // owned
|
||||||
bool m_useGenericHighlighter;
|
bool m_useGenericHighlighter = false;
|
||||||
bool m_duplicatedSupported;
|
bool m_duplicatedSupported = true;
|
||||||
bool m_codeFoldingSupported;
|
bool m_codeFoldingSupported = false;
|
||||||
bool m_paranthesesMatchinEnabled;
|
bool m_paranthesesMatchinEnabled = false;
|
||||||
bool m_marksVisible;
|
bool m_marksVisible = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
} /// namespace Internal
|
} /// namespace Internal
|
||||||
|
Reference in New Issue
Block a user