Commit eb579dec authored by hjk's avatar hjk

Debugger: Avoid some signed/unsigned warning

Change-Id: Ie61b0b33a912591927db7f3173f50ee100d52faf
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent e069d2f9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment