Use Boolean variable to store Boolean value.

This commit is contained in:
Artur Wieczorek
2015-08-30 19:48:09 +02:00
parent c63b1604b3
commit d6f2264f8b

View File

@@ -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);