From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_File_Chooser2.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Fl_File_Chooser2.cxx') 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); } -- cgit v1.2.3