summaryrefslogtreecommitdiff
path: root/src/drivers/Base/Fl_Base_Pen_Events.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-05 16:24:45 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-05 16:24:45 +0500
commitcdf2832347b8fdf0389cd373c2ead0ac5d071037 (patch)
tree96f9771aed0710899aa6cbba2a84dadfe76e996e /src/drivers/Base/Fl_Base_Pen_Events.cxx
parentdb214d1145e46d527a46d1fc2519548d2c4d23f1 (diff)
wip
Diffstat (limited to 'src/drivers/Base/Fl_Base_Pen_Events.cxx')
-rw-r--r--src/drivers/Base/Fl_Base_Pen_Events.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Base/Fl_Base_Pen_Events.cxx b/src/drivers/Base/Fl_Base_Pen_Events.cxx
index f4ebbd8ad..12f207731 100644
--- a/src/drivers/Base/Fl_Base_Pen_Events.cxx
+++ b/src/drivers/Base/Fl_Base_Pen_Events.cxx
@@ -39,7 +39,7 @@ using namespace Fl::Pen;
// ---- SubscriberList implementation ------------------------------------------
-/* Remove subscribers that have a nullptr as a widget */
+/* Remove subscribers that have a 0 as a widget */
void Fl::Pen::SubscriberList::cleanup() {
for (auto it = begin(); it != end(); ) {
if (!it->second->widget()) {
@@ -76,18 +76,18 @@ void Fl::Pen::SubscriberList::remove(Fl_Widget *w) {
// Override the methods below to handle subscriptions and queries by user apps.
void Fl::Pen::Driver::subscribe(Fl_Widget* widget) {
- if (widget == nullptr) return;
+ if (widget == 0) return;
subscriber_list_.add(widget);
}
void Fl::Pen::Driver::unsubscribe(Fl_Widget* widget) {
- if (widget == nullptr) return;
+ if (widget == 0) return;
subscriber_list_.remove(widget);
}
void Fl::Pen::Driver::release() {
- pushed_ = nullptr;
- below_pen_ = nullptr;
+ pushed_ = 0;
+ below_pen_ = 0;
}
Trait Fl::Pen::Driver::traits() {