summaryrefslogtreecommitdiff
path: root/test/color_chooser.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 04:21:03 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 04:21:03 +0500
commit4810610dafb8ed93dd3672e32256997e22eca950 (patch)
treee0db960825627acbe94a71f773ca3ac36617869f /test/color_chooser.cxx
parentf93978aba486bf0fea8d9ee857d014a02f3f7d96 (diff)
wip
Diffstat (limited to 'test/color_chooser.cxx')
-rw-r--r--test/color_chooser.cxx6
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);
}