summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Base/Fl_Base_Pen_Events.cxx10
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.cxx2
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) {