Use Boolean variable to store Boolean value.
This commit is contained in:
@@ -1697,9 +1697,7 @@ wxString wxFlagsProperty::ValueToString( wxVariant& value,
|
|||||||
const wxPGChoices& choices = m_choices;
|
const wxPGChoices& choices = m_choices;
|
||||||
for ( unsigned int i = 0; i < GetItemCount(); i++ )
|
for ( unsigned int i = 0; i < GetItemCount(); i++ )
|
||||||
{
|
{
|
||||||
int doAdd;
|
bool doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) );
|
||||||
doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) );
|
|
||||||
|
|
||||||
if ( doAdd )
|
if ( doAdd )
|
||||||
{
|
{
|
||||||
text += choices.GetLabel(i);
|
text += choices.GetLabel(i);
|
||||||
|
Reference in New Issue
Block a user