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();
|
return wxPGGlobalVars->m_boolChoices[boolValue?1:0].GetText();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString text;
|
return boolValue? wxS("true"): wxS("false");
|
||||||
|
|
||||||
if ( boolValue ) text = wxS("true");
|
|
||||||
else text = wxS("false");
|
|
||||||
|
|
||||||
return text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxBoolProperty::StringToValue( wxVariant& variant, const wxString& text, int WXUNUSED(argFlags) ) const
|
bool wxBoolProperty::StringToValue( wxVariant& variant, const wxString& text, int WXUNUSED(argFlags) ) const
|
||||||
|
Reference in New Issue
Block a user