summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser2.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
commitb4995f979d127cea667b4e2b71c91e9db4ab52ef (patch)
treefbebc775e10932bace8d6a7c3481b1ba200c64db /src/Fl_File_Chooser2.cxx
parent9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (diff)
wip
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
-rw-r--r--src/Fl_File_Chooser2.cxx6
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);
}