mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
selsoft.cpp: Stylistic consistency (nw)
This commit is contained in:
parent
dccefed038
commit
7e25a65f75
@ -48,18 +48,18 @@ bool compare_software(ui_software_info a, ui_software_info b)
|
||||
ui_software_info *x = &a;
|
||||
ui_software_info *y = &b;
|
||||
|
||||
bool clonex = (x->parentname[0] != '\0');
|
||||
bool cloney = (y->parentname[0] != '\0');
|
||||
bool clonex = !x->parentname.empty();
|
||||
bool cloney = !y->parentname.empty();
|
||||
|
||||
if (!clonex && !cloney)
|
||||
return (strmakelower(x->longname) < strmakelower(y->longname));
|
||||
|
||||
std::string cx(x->parentlongname), cy(y->parentlongname);
|
||||
|
||||
if (clonex && cx[0] == '\0')
|
||||
if (cx.empty())
|
||||
clonex = false;
|
||||
|
||||
if (cloney && cy[0] == '\0')
|
||||
if (cy.empty())
|
||||
cloney = false;
|
||||
|
||||
if (!clonex && !cloney)
|
||||
|
Loading…
Reference in New Issue
Block a user