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 /src/drivers | |
| parent | db214d1145e46d527a46d1fc2519548d2c4d23f1 (diff) | |
wip
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Base/Fl_Base_Pen_Events.cxx | 10 | ||||
| -rw-r--r-- | src/drivers/Posix/Fl_Posix_System_Driver.cxx | 2 |
2 files changed, 6 insertions, 6 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() { diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx index 35d9b7703..299a1b901 100644 --- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx @@ -371,7 +371,7 @@ static void unlock_function_rec() { # endif // HAVE_PTHREAD_MUTEX_RECURSIVE // -- Start of "awake" implementation -- -static void* thread_message_ = nullptr; +static void* thread_message_ = 0; static std::mutex pipe_mutex; void Fl_Posix_System_Driver::awake(void* msg) { |
