From 583efec3f8d93efab38c792a9f264f29b0bc01c2 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Wed, 17 Jun 2020 20:45:44 +0200 Subject: [PATCH] nullptr --- container/SinglyLinkedList.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/container/SinglyLinkedList.h b/container/SinglyLinkedList.h index 79562cd4a..3c0078fc4 100644 --- a/container/SinglyLinkedList.h +++ b/container/SinglyLinkedList.h @@ -15,11 +15,8 @@ public: T *value; class Iterator { public: - LinkedElement *value; - Iterator() : - value(NULL) { - - } + LinkedElement *value = nullptr; + Iterator() {} Iterator(LinkedElement *element) : value(element) {