summaryrefslogtreecommitdiff
path: root/fluid/widgets/Formula_Input.h
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/widgets/Formula_Input.h')
-rw-r--r--fluid/widgets/Formula_Input.h10
1 files changed, 5 insertions, 5 deletions
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(); }