diff options
Diffstat (limited to 'test/color_chooser.cxx')
| -rw-r--r-- | test/color_chooser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx index 88241e10b..e3893aaef 100644 --- a/test/color_chooser.cxx +++ b/test/color_chooser.cxx @@ -87,9 +87,9 @@ void cb2(Fl_Widget *, void *v) { class Sample_Box: public Fl_Box { public: - Sample_Box(int x, int y, int w, int h, const char *label = nullptr) + Sample_Box(int x, int y, int w, int h, const char *label = 0) : Fl_Box(x, y, w, h, label) { } - int handle(int event) override { + int handle(int event) { if (event == FL_BEFORE_TOOLTIP) { char buf[128]; uchar r, g, b; @@ -103,7 +103,7 @@ public: "Background color is:\n" "r:%d, g:%d, b:%d", r, g, b); } - return Fl_Tooltip::override_text(buf); + return Fl_Tooltip::_text(buf); } return Fl_Box::handle(event); } |
