From 44c874b731f9f58c2f50c3c6076371058cbe26e3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 30 Dec 2022 19:14:36 +0100 Subject: 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() --- test/doublebuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/doublebuffer.cxx') diff --git a/test/doublebuffer.cxx b/test/doublebuffer.cxx index aa5d1d44b..7b42a1ce1 100644 --- a/test/doublebuffer.cxx +++ b/test/doublebuffer.cxx @@ -69,14 +69,14 @@ void bad_draw(int w,int h,int which) { } class single_blink_window : public Fl_Single_Window { - void draw() {bad_draw(w(),h(),0); draw_child(*child(0));} + void draw() FL_OVERRIDE {bad_draw(w(),h(),0); draw_child(*child(0));} public: single_blink_window(int x, int y,int w,int h,const char *l) : Fl_Single_Window(x,y,w,h,l) {resizable(this);} }; class double_blink_window : public Fl_Double_Window { - void draw() {bad_draw(w(),h(),1); draw_child(*child(0));} + void draw() FL_OVERRIDE {bad_draw(w(),h(),1); draw_child(*child(0));} public: double_blink_window(int x, int y, int w,int h,const char *l) : Fl_Double_Window(x,y,w,h,l) {resizable(this);} -- cgit v1.2.3