return false;
}
-void wxGridSelection::SelectRow( int row, bool addToSelected = FALSE )
+void wxGridSelection::SelectRow( int row, bool addToSelected )
{
if ( m_selectionMode == wxGrid::wxGridSelectColumns )
return;
// If possible, merge row with existing selected block
count = m_blockSelectionTopLeft.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ size_t n;
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
wxGridCellCoords& coords2 = m_blockSelectionBottomRight[n];
// Check whether row is already selected.
count = m_rowSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
if ( row == m_rowSelection[n] )
return;
((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r );
}
-void wxGridSelection::SelectCol( int col, bool addToSelected = FALSE )
+void wxGridSelection::SelectCol( int col, bool addToSelected )
{
if ( m_selectionMode == wxGrid::wxGridSelectRows )
return;
// If possible, merge col with existing selected block
count = m_blockSelectionTopLeft.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ size_t n;
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
wxGridCellCoords& coords2 = m_blockSelectionBottomRight[n];
// Check whether col is already selected.
count = m_colSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
if ( col == m_colSelection[n] )
return;
void wxGridSelection::UpdateRows( size_t pos, int numRows )
{
size_t count = m_cellSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ size_t n;
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords = m_cellSelection[n];
wxCoord row = coords.GetRow();
}
count = m_blockSelectionTopLeft.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
wxGridCellCoords& coords2 = m_blockSelectionBottomRight[n];
}
count = m_rowSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
int & rowOrCol = m_rowSelection[n];
if ( (size_t)rowOrCol >= pos )
void wxGridSelection::UpdateCols( size_t pos, int numCols )
{
size_t count = m_cellSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ size_t n;
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords = m_cellSelection[n];
wxCoord col = coords.GetCol();
}
count = m_blockSelectionTopLeft.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
wxGridCellCoords& coords2 = m_blockSelectionBottomRight[n];
}
count = m_colSelection.GetCount();
- for ( size_t n = 0; n < count; n++ )
+ for ( n = 0; n < count; n++ )
{
int & rowOrCol = m_colSelection[n];
if ( (size_t)rowOrCol >= pos )