diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 0fd81d15c7..6e68b95e18 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -1697,9 +1697,7 @@ wxString wxFlagsProperty::ValueToString( wxVariant& value, const wxPGChoices& choices = m_choices; for ( unsigned int i = 0; i < GetItemCount(); i++ ) { - int doAdd; - doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) ); - + bool doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) ); if ( doAdd ) { text += choices.GetLabel(i);