From b2b4bbe5eab2890f0003b916f3e7d47b8b66ac9c Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 29 Nov 2015 10:25:55 +0000 Subject: [PATCH] Demo: Fixed variable shadowing warning. --- imgui_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 3640cc2ae..cdb5bd496 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1328,9 +1328,9 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::TreePop(); } - bool opened = ImGui::TreeNode("Tree within single cell"); + bool node_opened = ImGui::TreeNode("Tree within single cell"); ImGui::SameLine(); ShowHelpMarker("NB: Tree node must be poped before ending the cell.\nThere's no storage of state per-cell."); - if (opened) + if (node_opened) { ImGui::Columns(2, "tree items"); ImGui::Separator();