summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.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 /src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.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 'src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H
index 7959267f8..8e7246c24 100644
--- a/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Image_Surface_Driver.H
@@ -21,15 +21,15 @@
#include <FL/platform.H>
class Fl_Wayland_Image_Surface_Driver : public Fl_Image_Surface_Driver {
- virtual void end_current();
+ void end_current() FL_OVERRIDE;
struct wld_window *pre_window;
public:
Fl_Wayland_Image_Surface_Driver(int w, int h, int high_res, Fl_Offscreen off);
~Fl_Wayland_Image_Surface_Driver();
- virtual void set_current();
- virtual void translate(int x, int y);
- virtual void untranslate();
- virtual Fl_RGB_Image *image();
+ void set_current() FL_OVERRIDE;
+ void translate(int x, int y) FL_OVERRIDE;
+ void untranslate() FL_OVERRIDE;
+ Fl_RGB_Image *image() FL_OVERRIDE;
};
#endif // FL_WAYLAND_IMAGE_SURFACE_DRIVER_H