diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-12-30 19:14:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-30 19:14:36 +0100 |
| commit | 44c874b731f9f58c2f50c3c6076371058cbe26e3 (patch) | |
| tree | 2386dfcc700c41a1109fc78b96875c11056abcc9 /fluid/widget_browser.h | |
| parent | f58a93a159105336136ce6e54ab7fc161e4fa15a (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 'fluid/widget_browser.h')
| -rw-r--r-- | fluid/widget_browser.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fluid/widget_browser.h b/fluid/widget_browser.h index f0e68f364..00053419a 100644 --- a/fluid/widget_browser.h +++ b/fluid/widget_browser.h @@ -45,19 +45,19 @@ class Widget_Browser : public Fl_Browser_ int saved_v_scroll_; // required routines for Fl_Browser_ subclass: - void *item_first() const ; - void *item_next(void *) const ; - void *item_prev(void *) const ; - int item_selected(void *) const ; - void item_select(void *,int); - int item_width(void *) const ; - int item_height(void *) const ; - void item_draw(void *,int,int,int,int) const ; - int incr_height() const ; + void *item_first() const FL_OVERRIDE; + void *item_next(void *) const FL_OVERRIDE; + void *item_prev(void *) const FL_OVERRIDE; + int item_selected(void *) const FL_OVERRIDE; + void item_select(void *,int) FL_OVERRIDE; + int item_width(void *) const FL_OVERRIDE; + int item_height(void *) const FL_OVERRIDE; + void item_draw(void *,int,int,int,int) const FL_OVERRIDE; + int incr_height() const FL_OVERRIDE; public: Widget_Browser(int,int,int,int,const char * =NULL); - int handle(int); + int handle(int) FL_OVERRIDE; void callback(); void save_scroll_position(); void restore_scroll_position(); |
