summaryrefslogtreecommitdiff
path: root/test/utf8.cxx
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 /test/utf8.cxx
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 'test/utf8.cxx')
-rw-r--r--test/utf8.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utf8.cxx b/test/utf8.cxx
index eab5a547a..2f2d928a1 100644
--- a/test/utf8.cxx
+++ b/test/utf8.cxx
@@ -75,7 +75,7 @@ static void cb_exit(Fl_Button*, void*) {
*/
class FontDisplay : public Fl_Widget
{
- void draw(void);
+ void draw(void) FL_OVERRIDE;
public:
int font, size;
@@ -481,7 +481,7 @@ class right_left_input : public Fl_Input
{
public:
right_left_input (int x, int y, int w, int h) : Fl_Input(x, y, w, h) {}
- void draw() {
+ void draw() FL_OVERRIDE {
if (type() == FL_HIDDEN_INPUT) return;
Fl_Boxtype b = box();
if (damage() & FL_DAMAGE_ALL) draw_box(b, color());
@@ -526,7 +526,7 @@ class UCharDropBox : public Fl_Output {
public:
UCharDropBox(int x, int y, int w, int h, const char *label=0) :
Fl_Output(x, y, w, h, label) { }
- int handle(int event) {
+ int handle(int event) FL_OVERRIDE {
switch (event) {
case FL_DND_ENTER: return 1;
case FL_DND_DRAG: return 1;