From 43e0a37906afabb0b3b091b8d3eac9a910cae50c Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 02:33:41 +0500 Subject: wip --- fluid/widgets/Formula_Input.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fluid/widgets/Formula_Input.h') diff --git a/fluid/widgets/Formula_Input.h b/fluid/widgets/Formula_Input.h index 5df30b5af..5daa22bd9 100644 --- a/fluid/widgets/Formula_Input.h +++ b/fluid/widgets/Formula_Input.h @@ -29,7 +29,7 @@ typedef int (Fluid_Coord_Callback)(Formula_Input const *, void*); // Entry for a list of variables available to an input field. // Formula_Input::variables() expects an array of -// Formula_Input_Vars with the last entry's name_ set to nullptr. +// Formula_Input_Vars with the last entry's name_ set to 0. typedef struct Formula_Input_Vars { const char *name_; Fluid_Coord_Callback *callback_; @@ -38,9 +38,9 @@ typedef struct Formula_Input_Vars { // A text input widget that understands simple math. class Formula_Input : public Fl_Input { - Fl_Callback *user_callback_ { nullptr }; - Formula_Input_Vars *vars_ { nullptr }; - void *vars_user_data_ { nullptr }; + Fl_Callback *user_callback_ { 0 }; + Formula_Input_Vars *vars_ { 0 }; + void *vars_user_data_ { 0 }; static void callback_handler_cb(Formula_Input *This, void *v); void callback_handler(void *v); @@ -49,7 +49,7 @@ class Formula_Input : public Fl_Input int eval(const char *s) const; public: - Formula_Input(int x, int y, int w, int h, const char *l = nullptr); + Formula_Input(int x, int y, int w, int h, const char *l = 0); /** Return the text in the widget text field. */ const char *text() const { return Fl_Input::value(); } -- cgit v1.2.3