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 /FL/Fl_Overlay_Window.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 'FL/Fl_Overlay_Window.H')
| -rw-r--r-- | FL/Fl_Overlay_Window.H | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FL/Fl_Overlay_Window.H b/FL/Fl_Overlay_Window.H index 13676ab90..b03037586 100644 --- a/FL/Fl_Overlay_Window.H +++ b/FL/Fl_Overlay_Window.H @@ -49,10 +49,10 @@ public: private: Fl_Window *overlay_; public: - void show(); - void hide(); - void flush(); - void resize(int,int,int,int); + void show() FL_OVERRIDE; + void hide() FL_OVERRIDE; + void flush() FL_OVERRIDE; + void resize(int,int,int,int) FL_OVERRIDE; ~Fl_Overlay_Window(); /** Returns non-zero if there's hardware overlay support */ int can_do_overlay(); @@ -72,7 +72,7 @@ protected: public: /** Same as Fl_Window::show(int a, char **b) */ void show(int a, char **b) {Fl_Double_Window::show(a,b);} - virtual Fl_Overlay_Window *as_overlay_window() {return this; } + Fl_Overlay_Window *as_overlay_window() FL_OVERRIDE {return this; } }; #endif |
