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

@@ -2267,10 +2267,9 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
}
// Splitters
unsigned int si;
int sx = x;
for ( si = 0; si < colCount; si++ )
for ( unsigned int si = 0; si < colCount; si++ )
{
sx += colWidths[si];
dc.DrawLine( sx, y, sx, y2 );