瀏覽代碼

Demo: Fixed variable shadowing warning.

ocornut 9 年之前
父節點
當前提交
b2b4bbe5ea
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      imgui_demo.cpp

+ 2 - 2
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();