Avoid unnecessary casting in the comparison
Use variable of the same type as is returned by the function to avoid casting.
This commit is contained in:
@@ -2434,7 +2434,7 @@ void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const
|
|||||||
else
|
else
|
||||||
allChildrenSpecified = true;
|
allChildrenSpecified = true;
|
||||||
|
|
||||||
unsigned int n = 0;
|
size_t n = 0;
|
||||||
wxVariant childValue = list[n];
|
wxVariant childValue = list[n];
|
||||||
|
|
||||||
//wxLogDebug(wxS(">> %s.AdaptListToValue()"),GetBaseName());
|
//wxLogDebug(wxS(">> %s.AdaptListToValue()"),GetBaseName());
|
||||||
@@ -2460,7 +2460,7 @@ void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
n++;
|
n++;
|
||||||
if ( n == (unsigned int)list.GetCount() )
|
if ( n == list.GetCount() )
|
||||||
break;
|
break;
|
||||||
childValue = list[n];
|
childValue = list[n];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user