forked from qt-creator/qt-creator
Apply static pattern to TextEditorSetting
Change-Id: I4e6f573d893c0aa2bb4ca9812fc8db2961dac172 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -364,9 +364,8 @@ void QmlJSAssistProposalItem::applyContextualContent(TextEditor::BaseTextEditor
|
||||
QString content = text();
|
||||
int cursorOffset = 0;
|
||||
|
||||
const CompletionSettings &completionSettings =
|
||||
TextEditorSettings::instance()->completionSettings();
|
||||
const bool autoInsertBrackets = completionSettings.m_autoInsertBrackets;
|
||||
const bool autoInsertBrackets =
|
||||
TextEditorSettings::completionSettings().m_autoInsertBrackets;
|
||||
|
||||
if (autoInsertBrackets && data().canConvert<CompleteFunctionCall>()) {
|
||||
CompleteFunctionCall function = data().value<CompleteFunctionCall>();
|
||||
|
||||
Reference in New Issue
Block a user