diff options
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; } }; |
