From 01f3034d1131b6b018b9f03c172ff530371b6a08 Mon Sep 17 00:00:00 2001 From: Thibault Hennequin Date: Sat, 19 Aug 2017 17:04:02 +0200 Subject: [PATCH] Fix warning for hides previous local declaration --- ImWindow/ImwContainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ImWindow/ImwContainer.cpp b/ImWindow/ImwContainer.cpp index 09d5731..a456f2a 100644 --- a/ImWindow/ImwContainer.cpp +++ b/ImWindow/ImwContainer.cpp @@ -649,21 +649,21 @@ namespace ImWindow if (ImGui::BeginMenu("Dock to")) { - int iIndex = 0; + int iDockIndex = 0; if (pWindowManager->GetMainPlatformWindow()->GetContainer()->IsEmpty()) { ImGui::PushID(0); if (ImGui::Selectable("Main")) pWindowManager->Dock((*it)); ImGui::PopID(); - ++iIndex; + ++iDockIndex; } const ImwWindowList& lWindows = pWindowManager->GetWindowList(); for (ImwWindowList::const_iterator itWindow = lWindows.begin(); itWindow != lWindows.end(); ++itWindow) { if ((*it) != (*itWindow)) { - ImGui::PushID(iIndex); + ImGui::PushID(iDockIndex); if (ImGui::BeginMenu((*itWindow)->GetTitle())) { bool bHovered = false; @@ -732,7 +732,7 @@ namespace ImWindow } ImGui::PopID(); } - ++iIndex; + ++iDockIndex; } ImGui::EndMenu();