mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Misc: rename extraneous parenthesizes from return statements.
This commit is contained in:
parent
9c75ef5a61
commit
ae873b1e0d
6 changed files with 20 additions and 15 deletions
|
|
@ -2530,7 +2530,7 @@ struct ExampleDualListBox
|
|||
{
|
||||
const int* a = (const int*)lhs;
|
||||
const int* b = (const int*)rhs;
|
||||
return (*a - *b);
|
||||
return *a - *b;
|
||||
}
|
||||
void SortItems(int n)
|
||||
{
|
||||
|
|
@ -5545,7 +5545,7 @@ struct MyItem
|
|||
// qsort() is instable so always return a way to differentiate items.
|
||||
// Your own compare function may want to avoid fallback on implicit sort specs.
|
||||
// e.g. a Name compare if it wasn't already part of the sort specs.
|
||||
return (a->ID - b->ID);
|
||||
return a->ID - b->ID;
|
||||
}
|
||||
};
|
||||
const ImGuiTableSortSpecs* MyItem::s_current_sort_specs = NULL;
|
||||
|
|
@ -10516,7 +10516,7 @@ struct ExampleAsset
|
|||
if (delta < 0)
|
||||
return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? -1 : +1;
|
||||
}
|
||||
return ((int)a->ID - (int)b->ID);
|
||||
return (int)a->ID - (int)b->ID;
|
||||
}
|
||||
};
|
||||
const ImGuiTableSortSpecs* ExampleAsset::s_current_sort_specs = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue