Use conditional operator instead of conditional statement

This notation is more intuitive in this context.
This commit is contained in:
Artur Wieczorek
2019-07-08 22:13:55 +02:00
parent b330fac6a1
commit a6e6a948ea

View File

@@ -2185,11 +2185,7 @@ void wxPGMultiButton::Finalize( wxPropertyGrid* WXUNUSED(propGrid),
int wxPGMultiButton::GenId( int itemid ) const int wxPGMultiButton::GenId( int itemid ) const
{ {
if ( itemid < -1 ) return itemid < -1 ? wxID_ANY : itemid;
{
itemid = wxID_ANY;
}
return itemid;
} }
#if wxUSE_BMPBUTTON #if wxUSE_BMPBUTTON