We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472410e commit 8bd1d8fCopy full SHA for 8bd1d8f
LinkedList.h
@@ -69,12 +69,12 @@ namespace LinkedList {
69
}
70
71
void append(List<type>* list) {
72
- for (Node<type>* i = this->head; i != nullptr; i = i->next)
73
- list->push(i->value);
+ for (Node<type>* i = list->head; i != nullptr; i = i->next)
+ this->push(i->value);
74
75
76
void copy(List<type>* list) {
77
- list->clear();
+ this->clear();
78
this->append(list);
79
80
@@ -111,4 +111,4 @@ namespace LinkedList {
111
};
112
113
114
-#endif
+#endif
0 commit comments