remove useless comparison of unsigned value with 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a22895511a
commit
9e996d8c43
@ -1237,7 +1237,7 @@ bool wxSystemColourProperty::StringToValue( wxVariant& value, const wxString& te
|
||||
if ( res && GetIndex() >= 0 )
|
||||
{
|
||||
val.m_type = GetIndex();
|
||||
if ( val.m_type >= 0 && val.m_type < m_choices.GetCount() )
|
||||
if ( val.m_type < m_choices.GetCount() )
|
||||
val.m_type = m_choices[val.m_type].GetValue();
|
||||
|
||||
// Get proper colour for type.
|
||||
|
Loading…
Reference in New Issue
Block a user