Reduce the scope of variables using to indexing single loop only.

And adjust their types if necessary (to have uniform types in the test expression).
This commit is contained in:
Artur Wieczorek
2015-05-28 19:39:14 +02:00
parent 6908275ed2
commit 0508087ce2
7 changed files with 34 additions and 68 deletions

View File

@@ -1032,8 +1032,7 @@ wxWindow* wxPGChoiceEditor::CreateControlsBase( wxPropertyGrid* propGrid,
}
}
unsigned int i;
for ( i=0; i<cmnVals; i++ )
for ( unsigned int i = 0; i < cmnVals; i++ )
labels.Add(propGrid->GetCommonValueLabel(i));
}