TreePush: removed arbitrary/weird suppot for TreePush((const char*)NULL)

This commit is contained in:
ocornut
2021-09-15 12:12:49 +02:00
parent 7b8bc864e9
commit 4f10fe0a27
3 changed files with 8 additions and 3 deletions

View File

@ -5983,7 +5983,7 @@ void ImGui::TreePush(const char* str_id)
ImGuiWindow* window = GetCurrentWindow();
Indent();
window->DC.TreeDepth++;
PushID(str_id ? str_id : "#TreePush");
PushID(str_id);
}
void ImGui::TreePush(const void* ptr_id)
@ -5991,7 +5991,7 @@ void ImGui::TreePush(const void* ptr_id)
ImGuiWindow* window = GetCurrentWindow();
Indent();
window->DC.TreeDepth++;
PushID(ptr_id ? ptr_id : (const void*)"#TreePush");
PushID(ptr_id);
}
void ImGui::TreePushOverrideID(ImGuiID id)