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:
@@ -94,8 +94,7 @@ bool operator == (const wxArrayInt& array1, const wxArrayInt& array2)
|
||||
{
|
||||
if ( array1.size() != array2.size() )
|
||||
return false;
|
||||
size_t i;
|
||||
for ( i=0; i<array1.size(); i++ )
|
||||
for ( size_t i = 0; i < array1.size(); i++ )
|
||||
{
|
||||
if ( array1[i] != array2[i] )
|
||||
return false;
|
||||
@@ -2134,8 +2133,7 @@ bool wxMultiChoiceProperty::OnEvent( wxPropertyGrid* propgrid,
|
||||
value.push_back(extraStrings[n]);
|
||||
}
|
||||
|
||||
unsigned int i;
|
||||
for ( i=0; i<arrInt.size(); i++ )
|
||||
for ( size_t i = 0; i < arrInt.size(); i++ )
|
||||
value.Add(m_choices.GetLabel(arrInt.Item(i)));
|
||||
|
||||
if ( userStringMode == 2 )
|
||||
|
Reference in New Issue
Block a user