diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-27 14:52:43 +0200 |
| commit | 6ac305a50804498b8c7ab00d23d2d4f3164b84fa (patch) | |
| tree | 9093bd58f0babd89ce55a45cee7e53d5029a1e14 /FL/Fl_File_Browser.H | |
| parent | 23c54e7a4b82fe325d74a181060535b60243208d (diff) | |
Remove compiler warnings '-Wextra-semi' (see also PR #266)
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows
(cross-compiled on Linux) and removed all "extra semicolon" warnings
I could find. I didn't check on macOS (yet).
Note: Linux configured with and w/o Pango but not w/o Xft. Compilation
with other options (e.g. Cairo) might still emit such warnings.
Diffstat (limited to 'FL/Fl_File_Browser.H')
| -rw-r--r-- | FL/Fl_File_Browser.H | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FL/Fl_File_Browser.H b/FL/Fl_File_Browser.H index 40d328093..8ea51b2ad 100644 --- a/FL/Fl_File_Browser.H +++ b/FL/Fl_File_Browser.H @@ -55,9 +55,9 @@ public: ~Fl_File_Browser(); /** Sets or gets the size of the icons. The default size is 20 pixels. */ - uchar iconsize() const { return (iconsize_); }; + uchar iconsize() const { return (iconsize_); } /** Sets or gets the size of the icons. The default size is 20 pixels. */ - void iconsize(uchar s) { iconsize_ = s; redraw(); }; + void iconsize(uchar s) { iconsize_ = s; redraw(); } /** Sets or gets the filename filter. The pattern matching uses @@ -70,10 +70,10 @@ public: the fl_filename_match() function in FLTK. */ - const char *filter() const { return (pattern_); }; + const char *filter() const { return (pattern_); } int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort); - Fl_Fontsize textsize() const { return Fl_Browser::textsize(); }; - void textsize(Fl_Fontsize s) { Fl_Browser::textsize(s); iconsize_ = (uchar)(3 * s / 2); }; + Fl_Fontsize textsize() const { return Fl_Browser::textsize(); } + void textsize(Fl_Fontsize s) { Fl_Browser::textsize(s); iconsize_ = (uchar)(3 * s / 2); } /** Sets or gets the file browser type, FILES or @@ -81,14 +81,14 @@ public: files and directories are shown. Otherwise only directories are shown. */ - int filetype() const { return (filetype_); }; + int filetype() const { return (filetype_); } /** Sets or gets the file browser type, FILES or DIRECTORIES. When set to FILES, both files and directories are shown. Otherwise only directories are shown. */ - void filetype(int t) { filetype_ = t; }; + void filetype(int t) { filetype_ = t; } void errmsg(const char *emsg); /** Returns OS error messages, or NULL if none. Use when advised. |
