From f3c84c6d4f77606b6340db197cb5d9b9fd5aa98c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 21 Sep 2023 11:23:03 +0200 Subject: [PATCH] CMakeProjectManager: Fix warning about shadowing Amends a998269d7eeac2ded09dafdacd18de614e0a5a0d Change-Id: I5a36c3fc15e2913656a1d7bf7113ebd39cd6008c Reviewed-by: Jarek Kobus --- src/plugins/cmakeprojectmanager/cmakeeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp index 57aaf49f2a1..b0179b1714f 100644 --- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp @@ -60,7 +60,6 @@ CMakeEditor::CMakeEditor() void CMakeEditor::contextHelp(const HelpCallback &callback) const { - const QString word = Utils::Text::wordUnderCursor(editorWidget()->textCursor()); auto helpPrefix = [this](const QString &word) { if (m_keywords.includeStandardModules.contains(word)) return "module/"; @@ -84,6 +83,7 @@ void CMakeEditor::contextHelp(const HelpCallback &callback) const return "unknown/"; }; + const QString word = Utils::Text::wordUnderCursor(editorWidget()->textCursor()); const QString id = helpPrefix(word) + word; if (id.startsWith("unknown/")) { BaseTextEditor::contextHelp(callback);