1

remove cstddef

This commit is contained in:
2022-07-23 15:30:04 +02:00
parent 5c9668ef97
commit 674ed71652

View File

@ -1,6 +1,4 @@
#include "Queue.h"
#include <cstddef>
// #include <iostream>
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;