diff options
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 46e902c18..bcf22111d 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1418,7 +1418,8 @@ Fl_File_Chooser::update_preview() This sample code loops through all selected files: \code // Get list of filenames user selected from a MULTI chooser - for ( int t=1; t<=chooser->count(); t++ ) { + int t; + for (t =1; t<=chooser->count(); t++ ) { const char *filename = chooser->value(t); ... } @@ -1588,7 +1589,8 @@ void Fl_File_Chooser::showHidden(int value) void Fl_File_Chooser::remove_hidden_files() { int count = fileList->size(); - for(int num = count; num >= 1; num--) { + int num; + for (num = count; num >= 1; num--) { const char *p = fileList->text(num); if (*p == '.' && strcmp(p, "../") != 0) fileList->remove(num); } |
