diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 02:33:41 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 02:33:41 +0500 |
| commit | 43e0a37906afabb0b3b091b8d3eac9a910cae50c (patch) | |
| tree | d2a037c2bf0dc395fddb08e32ebfcf2795503b7c /fluid/widgets/Node_Browser.cxx | |
| parent | 4ce4967c33d56e4b56d85d11fe0e0be91e159f5d (diff) | |
wip
Diffstat (limited to 'fluid/widgets/Node_Browser.cxx')
| -rw-r--r-- | fluid/widgets/Node_Browser.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fluid/widgets/Node_Browser.cxx b/fluid/widgets/Node_Browser.cxx index 06804125d..cf036f9b7 100644 --- a/fluid/widgets/Node_Browser.cxx +++ b/fluid/widgets/Node_Browser.cxx @@ -28,7 +28,7 @@ // ---- global variables /// Global access to the widget browser. -fld::widget::Node_Browser *widget_browser = nullptr; +fld::widget::Node_Browser *widget_browser = 0; using namespace fld; using namespace fld::widget; @@ -81,7 +81,7 @@ Fl_Widget *make_widget_browser(int x,int y,int w,int h) { /** Make sure that the caller is visible in the widget browser. \param[in] caller scroll the browser in y so that caller - is visible (may be nullptr) + is visible (may be 0) */ void redraw_widget_browser(Node *caller) { @@ -165,7 +165,7 @@ static char *copy_trunc(char *p, const char *str, int maxl, int quote, int trunc { int size = 0; // truncated string size in characters int bs; // size of UTF-8 character in bytes - if (!p) return nullptr; // bad buffer + if (!p) return 0; // bad buffer if (!str) { // no input string if (quote) { *p++='"'; *p++='"'; } *p = 0; @@ -232,7 +232,7 @@ void *Node_Browser::item_first() const { /** Override the method to find the next item in the list of elements. \param l this item - \return the next item, irregardless of tree depth, or nullptr at the end + \return the next item, irregardless of tree depth, or 0 at the end */ void *Node_Browser::item_next(void *l) const { return ((Node*)l)->next; @@ -241,7 +241,7 @@ void *Node_Browser::item_next(void *l) const { /** Override the method to find the previous item in the list of elements. \param l this item - \return the previous item, irregardless of tree depth, or nullptr at the start + \return the previous item, irregardless of tree depth, or 0 at the start */ void *Node_Browser::item_prev(void *l) const { return ((Node*)l)->prev; @@ -531,7 +531,7 @@ int Node_Browser::handle(int e) { if (l) { X += 3 + 12*l->level - hposition(); if (l->can_have_children() && Fl::event_x()>X && Fl::event_x()<X+13) ; - else l = nullptr; + else l = 0; } if (l != pushedtitle) { if (pushedtitle) redraw_line(pushedtitle); |
