From d6f2264f8b9e6385d0c7e1fe2b73e7e0aa51ab1e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 30 Aug 2015 19:48:09 +0200 Subject: [PATCH] Use Boolean variable to store Boolean value. --- src/propgrid/props.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);