diff --git a/DataStructures/src/LinkedList/linkedlist.h b/DataStructures/src/LinkedList/linkedlist.h index e48d05d..2a222cf 100644 --- a/DataStructures/src/LinkedList/linkedlist.h +++ b/DataStructures/src/LinkedList/linkedlist.h @@ -49,7 +49,7 @@ namespace Datastructures { } //Add new node and set to tail. - (*mTail).mNext = std::make_shared>(value); - mTail = (*mTail).mNext; + (*mTail).next = std::make_shared>(value); + mTail = (*mTail).next; } } \ No newline at end of file diff --git a/DataStructures/src/LinkedList/linkedlistnode.h b/DataStructures/src/LinkedList/linkedlistnode.h index e0f3d73..be788c8 100644 --- a/DataStructures/src/LinkedList/linkedlistnode.h +++ b/DataStructures/src/LinkedList/linkedlistnode.h @@ -9,8 +9,6 @@ namespace Datastructures { public: //Inherit Constructor and destructor from generic Undirectetd Node using Generic::UndirectedNode>::UndirectedNode; - template - friend class LinkedList; private: }; }