Skip to content

Commit

Permalink
Fix warning for hides previous local declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
thennequin committed Aug 19, 2017
1 parent 9760f42 commit 01f3034
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ImWindow/ImwContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -732,7 +732,7 @@ namespace ImWindow
}
ImGui::PopID();
}
++iIndex;
++iDockIndex;
}

ImGui::EndMenu();
Expand Down

0 comments on commit 01f3034

Please sign in to comment.