diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-08-22 13:35:42 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-08-22 13:35:42 +0200 |
| commit | 340e2ac3a176ae04c89c1a3e1036472d3e847c62 (patch) | |
| tree | 8a4d21df0fe2c6c7265d2acbb33669d80eac679f /src | |
| parent | 206675a3b1495dd03067d764a5a97819e572b558 (diff) | |
Fix .clang-format and some whitespace errors
.clang-format: UseTab: ForIndentation -> Never
Update fluid generated files
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Native_File_Chooser_WIN32.cxx | 2 | ||||
| -rw-r--r-- | src/scandir_posix.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index c22860c24..6350f1db7 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -42,7 +42,7 @@ \endcode - If no "*" pattern is provided, then an entry for "All Files (*)" is automatically added. - An optional file preview box is provided which can be toggled by programmer or user - showing images, or the first 2048 bytes of printable text. + showing images, or the first 2048 bytes of printable text. - Preview image loading functions can be registered to provide custom file previews. - The favorites button shows up to 100 user-saved favorite directories, the user's home directory, and a filesystems item. diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index 4b982a697..f9bc77787 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/src/Fl_Native_File_Chooser_WIN32.cxx @@ -527,7 +527,7 @@ int Fl_WinAPI_Native_File_Chooser_Driver::showfile() { strncpy(pathname, wchartoutf8(dirname), FNFC_MAX_PATH); strncat(pathname, "\\", FNFC_MAX_PATH); strncat(pathname, wchartoutf8(s), FNFC_MAX_PATH); - pathname[FNFC_MAX_PATH-1] = 0; + pathname[FNFC_MAX_PATH-1] = 0; add_pathname(pathname); } } diff --git a/src/scandir_posix.c b/src/scandir_posix.c index 7295d7e7d..9d8396619 100644 --- a/src/scandir_posix.c +++ b/src/scandir_posix.c @@ -157,7 +157,7 @@ fl_scandir(const char *dir, struct dirent ***namelist, if (errmsg) fl_snprintf(errmsg, errmsg_sz, "%s", strerror(errno)); // XXX: This would be a thread safe alternative to the above, but commented - // out because we can get either GNU or POSIX versions on linux, + // out because we can get either GNU or POSIX versions on linux, // which AFAICT are incompatible: GNU doesn't guarantee errmsg is used // at all, whereas POSIX /only/ fills buffer. The two calls are not really // compatible but have the same name and different return values.. wtf? |
