]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed non-standard C++ syntax errors
authorJulian Smart <julian@anthemion.co.uk>
Sat, 4 Mar 2000 12:11:47 +0000 (12:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 4 Mar 2000 12:11:47 +0000 (12:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/gridsel.cpp

index 74b5214df15ee5c1712a2a2822988deffc63d505..341f70ea4c44956f4e452d13d9280877752876ce 100644 (file)
@@ -90,7 +90,7 @@ bool wxGridSelection::IsInSelection ( int row, int col )
     return false;
 }
 
-void wxGridSelection::SelectRow( int row, bool addToSelected = FALSE )
+void wxGridSelection::SelectRow( int row, bool addToSelected )
 {
     if ( m_selectionMode == wxGrid::wxGridSelectColumns )
         return;
@@ -115,7 +115,8 @@ void wxGridSelection::SelectRow( int row, bool addToSelected = FALSE )
 
     // 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];
@@ -145,7 +146,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected = FALSE )
 
     // 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;
@@ -161,7 +162,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected = FALSE )
         ((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;
@@ -186,7 +187,8 @@ void wxGridSelection::SelectCol( int col, bool addToSelected = FALSE )
 
     // 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];
@@ -216,7 +218,7 @@ void wxGridSelection::SelectCol( int col, bool addToSelected = FALSE )
 
     // 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;
@@ -550,7 +552,8 @@ void wxGridSelection::ClearSelection()
 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();
@@ -580,7 +583,7 @@ void wxGridSelection::UpdateRows( size_t pos, int numRows )
     }
 
     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];
@@ -623,7 +626,7 @@ void wxGridSelection::UpdateRows( size_t pos, int numRows )
     }
 
     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 )
@@ -651,7 +654,8 @@ void wxGridSelection::UpdateRows( size_t pos, int numRows )
 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();
@@ -681,7 +685,7 @@ void wxGridSelection::UpdateCols( size_t pos, int numCols )
     }
 
     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];
@@ -724,7 +728,7 @@ void wxGridSelection::UpdateCols( size_t pos, int numCols )
     }
 
     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 )