Skip to content

Commit 070efa4

Browse files
committed
clangd
1 parent 5ce3c64 commit 070efa4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/DoubleLinkedList.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ class DoubleLinkedList : public AbstractList<T> {
203203
return;
204204
}
205205

206-
Entry *current = head;
207-
Entry *next;
208-
for (int i = 0; i < this->getSize(); ++i) {
209-
next = current->getNext();
206+
Entry *current = head;
207+
Entry *next;
208+
for (int i = 0; i < this->getSize(); ++i) {
209+
next = current->getNext();
210210

211-
delete current;
212-
current = next;
213-
}
211+
delete current;
212+
current = next;
213+
}
214214

215215
this->resetSize();
216216
head = nullptr;

0 commit comments

Comments
 (0)