From 674ed71652c25a14f2b7c2716749707347e5ed57 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 23 Jul 2022 15:30:04 +0200 Subject: [PATCH] remove cstddef --- c_os/lib/Queue.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/c_os/lib/Queue.cc b/c_os/lib/Queue.cc index a80adf2..9356e89 100644 --- a/c_os/lib/Queue.cc +++ b/c_os/lib/Queue.cc @@ -1,6 +1,4 @@ #include "Queue.h" -#include -// #include void Queue::enqueue(Chain* item) { // std::cout << "Enqueue " << item->val << std::endl; @@ -13,7 +11,7 @@ Chain* Queue::dequeue() { if (this->isEmpty()) { // This should not ever happen as the idle thread exists always // std::cout << "Dequeue called on empty queue." << std::endl; - return NULL; + return nullptr; } Chain* item = this->head; @@ -38,7 +36,7 @@ void Queue::remove(Chain* item) { } Chain* current = this->head; - Chain* lastnext = NULL; + Chain* lastnext = nullptr; while (current != item) { if (current->next == *this->tail) { // std::cout << "Element not in queue." << std::endl;