mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-05 21:07:51 +00:00
Misc: rename extraneous parenthesizes from return statements.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user