summaryrefslogtreecommitdiff
path: root/src/Fl_Table_Row.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Table_Row.cxx')
-rw-r--r--src/Fl_Table_Row.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Table_Row.cxx b/src/Fl_Table_Row.cxx
index d07db7ac7..9bf665eab 100644
--- a/src/Fl_Table_Row.cxx
+++ b/src/Fl_Table_Row.cxx
@@ -114,7 +114,8 @@ int Fl_Table_Row::select_row(int row, int flag) {
case SELECT_SINGLE: {
int oldval;
- for ( int t=0; t<rows(); t++ ) {
+ int t;
+ for (t =0; t<rows(); t++ ) {
if ( t == row ) {
oldval = _rowselect[row];
if ( flag == 2 ) { _rowselect[row] ^= 1; }
@@ -254,7 +255,8 @@ int Fl_Table_Row::handle(int event) {
srow = _last_row;
erow = R;
}
- for ( int row = srow; row <= erow; row++ ) {
+ int row;
+ for (row = srow; row <= erow; row++ ) {
select_row(row, 1);
}
}
@@ -320,7 +322,8 @@ int Fl_Table_Row::handle(int event) {
srow = _last_row;
erow = R;
}
- for ( int row = srow; row <= erow; row++ ) {
+ int row;
+ for (row = srow; row <= erow; row++ ) {
select_row(row, 1);
}
}