summaryrefslogtreecommitdiff
path: root/FL/Fl_Table.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-12-30 19:14:36 +0100
committerGitHub <noreply@github.com>2022-12-30 19:14:36 +0100
commit44c874b731f9f58c2f50c3c6076371058cbe26e3 (patch)
tree2386dfcc700c41a1109fc78b96875c11056abcc9 /FL/Fl_Table.H
parentf58a93a159105336136ce6e54ab7fc161e4fa15a (diff)
Use `FL_OVERRIDE` for all overridden virtual methods (#611)
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
Diffstat (limited to 'FL/Fl_Table.H')
-rw-r--r--FL/Fl_Table.H6
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Table.H b/FL/Fl_Table.H
index 15e7836bb..d6b4c4738 100644
--- a/FL/Fl_Table.H
+++ b/FL/Fl_Table.H
@@ -231,7 +231,7 @@ protected:
Fl_Scrollbar *hscrollbar; ///< child horizontal scrollbar widget
// Fltk
- int handle(int e); // fltk handle() override
+ int handle(int e) FL_OVERRIDE; // fltk handle() FL_OVERRIDE
// Class maintenance
void recalc_dimensions();
@@ -397,7 +397,7 @@ protected:
}
// draw() has to be protected per FLTK convention (was public in 1.3.x)
- void draw();
+ void draw() FL_OVERRIDE;
public:
Fl_Table(int X, int Y, int W, int H, const char *l=0);
@@ -732,7 +732,7 @@ public:
void set_selection(int row_top, int col_left, int row_bot, int col_right);
int move_cursor(int R, int C, int shiftselect);
int move_cursor(int R, int C);
- void resize(int X, int Y, int W, int H); // fltk resize() override
+ void resize(int X, int Y, int W, int H) FL_OVERRIDE; // fltk resize() FL_OVERRIDE
// This crashes sortapp() during init.
// void box(Fl_Boxtype val) {