Remove an unreachable leaf flag ternary.

The tree node is only drawn when the count is greater than zero, so the
leaf flag could never be selected. Use the plain TreeNode call.
This commit is contained in:
Bartosz Taudul
2026-07-25 22:43:54 +02:00
parent 24b2702977
commit a1ef58efac

View File

@@ -240,7 +240,7 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, uint
if( v.count > 0 && v.symAddr != 0 )
{
ImGui::PushID( v.symAddr );
expand = ImGui::TreeNodeEx( "", v.count == 0 ? ImGuiTreeNodeFlags_Leaf : 0 );
expand = ImGui::TreeNode( "" );
ImGui::PopID();
ImGui::SameLine();
}