From f44daaa526a7bfdd8581cbc3d3931f22ca76cabe Mon Sep 17 00:00:00 2001 From: Tishasoumya-02 Date: Tue, 7 Sep 2021 12:51:09 +0530 Subject: [PATCH] fix: synatx changes --- data_structures/reverse_a_linked_list.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data_structures/reverse_a_linked_list.cpp b/data_structures/reverse_a_linked_list.cpp index 0ff91a17c..2f12df9b6 100644 --- a/data_structures/reverse_a_linked_list.cpp +++ b/data_structures/reverse_a_linked_list.cpp @@ -47,15 +47,13 @@ Node *next; ///< pointer to the next value on the list */ class list { private: - Node * head; // link before the actual first element + Node *head{nullptr}; // link before the actual first element public: /** * List constructor. Initializes the first link. */ list() { // Initialize the first link - head = nullptr; - } void insert(int new_elem);