From eb579dec4fd4020718d0cff49f115882be88f12b Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 22 Feb 2017 09:14:33 +0100 Subject: [PATCH] Debugger: Avoid some signed/unsigned warning Change-Id: Ie61b0b33a912591927db7f3173f50ee100d52faf Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggerplugin.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index a91b719ced1..144fe83ca9f 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -3018,12 +3018,8 @@ void DebuggerPluginPrivate::extensionsInitialized() { // If the CppEditor or QmlJS editor plugin is there, we want to add something to // the editor context menu. - const Id menuIds[2] = { - CppEditor::Constants::M_CONTEXT, - QmlJSEditor::Constants::M_CONTEXT - }; - for (int i = 0; i < sizeof(menuIds) / sizeof(menuIds[0]); ++i) { - if (ActionContainer *editorContextMenu = ActionManager::actionContainer(menuIds[i])) { + for (Id menuId : { CppEditor::Constants::M_CONTEXT, QmlJSEditor::Constants::M_CONTEXT }) { + if (ActionContainer *editorContextMenu = ActionManager::actionContainer(menuId)) { auto cmd = editorContextMenu->addSeparator(m_watchCommand->context()); cmd->setAttribute(Command::CA_Hide); cmd = m_watchCommand;