diff options
author | corvid <devnull@localhost> | 2015-01-24 00:21:18 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2015-01-24 00:21:18 +0000 |
commit | cf075fda81d5450047721573ce6f2c17474ade7e (patch) | |
tree | 709c33ea9c89870f7af62a539c4dbf86966c1d58 /dw | |
parent | 4e9e0f60fe1f426dfae4cced9d3b5d1f1d4d9487 (diff) |
input init usual_color
Not 'necessary' at present, but valgrind complains and it's always good
practice.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/fltkui.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 84e0b730..fb6e61e1 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -47,8 +47,7 @@ */ class CustInput2 : public Fl_Input { public: - CustInput2 (int x, int y, int w, int h, const char* l=0) : - Fl_Input(x,y,w,h,l) { placeholder = NULL; showing_placeholder = false; }; + CustInput2 (int x, int y, int w, int h, const char* l=0); ~CustInput2 () { if (placeholder) free(placeholder); }; void set_placeholder(const char *str); int show_placeholder(); @@ -66,6 +65,14 @@ private: int usual_type; }; +CustInput2::CustInput2 (int x, int y, int w, int h, const char* l) : + Fl_Input(x,y,w,h,l) +{ + placeholder = NULL; + showing_placeholder = false; + usual_color = FL_BLACK; /* just init until widget style is set */ +}; + /* * Show normal text. */ |