diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
| commit | cdf2832347b8fdf0389cd373c2ead0ac5d071037 (patch) | |
| tree | 96f9771aed0710899aa6cbba2a84dadfe76e996e /FL/Fl_Widget_Tracker.H | |
| parent | db214d1145e46d527a46d1fc2519548d2c4d23f1 (diff) | |
wip
Diffstat (limited to 'FL/Fl_Widget_Tracker.H')
| -rw-r--r-- | FL/Fl_Widget_Tracker.H | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FL/Fl_Widget_Tracker.H b/FL/Fl_Widget_Tracker.H index fb2182e5f..0a2a5b6da 100644 --- a/FL/Fl_Widget_Tracker.H +++ b/FL/Fl_Widget_Tracker.H @@ -87,11 +87,11 @@ public: /** Clear the widget pointer. */ - void clear() { wp_ = nullptr; } + void clear() { wp_ = 0; } /** Returns a pointer to the watched widget. - \return nullptr if the widget was deleted. + \return 0 if the widget was deleted. */ Fl_Widget *widget() { return wp_; } @@ -99,13 +99,13 @@ public: Check if the widget was deleted since the tracker was created. \return 1 if the watched widget has been deleted, otherwise 0 */ - int deleted() {return wp_ == nullptr;} + int deleted() {return wp_ == 0;} /** Check if the widget exists and was not deleted since the tracker was created. \return 1 if the watched widget exists, otherwise 0 */ - int exists() { return wp_ != nullptr; } + int exists() { return wp_ != 0; } }; |
