Use conditional operator instead of conditional statement

This notation is more intuitive in this context.
This commit is contained in:
Artur Wieczorek 2019-04-28 17:14:24 +02:00
parent bdc9d8f772
commit 96e24e73d6

View File

@ -948,10 +948,7 @@ void wxSystemColourProperty::Init( int type, const wxColour& colour )
{
wxColourPropertyValue cpv;
if ( colour.IsOk() )
cpv.Init( type, colour );
else
cpv.Init( type, *wxWHITE );
cpv.Init(type, colour.IsOk() ? colour : *wxWHITE);
m_flags |= wxPG_PROP_STATIC_CHOICES; // Colour selection cannot be changed.