diff options
Diffstat (limited to 'src/Fl_Native_File_Chooser.cxx')
| -rw-r--r-- | src/Fl_Native_File_Chooser.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Native_File_Chooser.cxx b/src/Fl_Native_File_Chooser.cxx index 2cafb019b..c5761f8c3 100644 --- a/src/Fl_Native_File_Chooser.cxx +++ b/src/Fl_Native_File_Chooser.cxx @@ -75,7 +75,8 @@ int Fl_Native_File_Chooser::options() const { \code if ( fnfc->show() == 0 ) { // Print all filenames user selected - for (int n=0; n<fnfc->count(); n++ ) { + int n; + for (n =0; n<fnfc->count(); n++ ) { printf("%d) '%s'\n", n, fnfc->filename(n)); } } @@ -103,7 +104,8 @@ const char *Fl_Native_File_Chooser::filename() const { \code if ( fnfc->show() == 0 ) { // Print all filenames user selected - for (int n=0; n<fnfc->count(); n++ ) { + int n; + for (n =0; n<fnfc->count(); n++ ) { printf("%d) '%s'\n", n, fnfc->filename(n)); } } |
