Use conditional operator instead of conditional statement
This notation is more intuitive in this context.
This commit is contained in:
parent
b330fac6a1
commit
a6e6a948ea
@ -2185,11 +2185,7 @@ void wxPGMultiButton::Finalize( wxPropertyGrid* WXUNUSED(propGrid),
|
||||
|
||||
int wxPGMultiButton::GenId( int itemid ) const
|
||||
{
|
||||
if ( itemid < -1 )
|
||||
{
|
||||
itemid = wxID_ANY;
|
||||
}
|
||||
return itemid;
|
||||
return itemid < -1 ? wxID_ANY : itemid;
|
||||
}
|
||||
|
||||
#if wxUSE_BMPBUTTON
|
||||
|
Loading…
Reference in New Issue
Block a user