Use conditional operator instead of conditional statement in wxBoolProperty::ValueToString.
This commit is contained in:
@@ -1066,12 +1066,7 @@ wxString wxBoolProperty::ValueToString( wxVariant& value,
|
||||
return wxPGGlobalVars->m_boolChoices[boolValue?1:0].GetText();
|
||||
}
|
||||
|
||||
wxString text;
|
||||
|
||||
if ( boolValue ) text = wxS("true");
|
||||
else text = wxS("false");
|
||||
|
||||
return text;
|
||||
return boolValue? wxS("true"): wxS("false");
|
||||
}
|
||||
|
||||
bool wxBoolProperty::StringToValue( wxVariant& variant, const wxString& text, int WXUNUSED(argFlags) ) const
|
||||
|
Reference in New Issue
Block a user