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 5a21482 commit 88693c6Copy full SHA for 88693c6
include/kf/DoubleLinkedList.h
@@ -36,6 +36,8 @@ namespace kf
36
{
37
if (this != &other)
38
39
+ clear();
40
+
41
if (!other.isEmpty())
42
43
LIST_ENTRY* next = other.m_head.Flink;
test/DoubleLinkedListTest.cpp
@@ -282,11 +282,12 @@ SCENARIO("DoubleLinkedListConstIterator")
282
283
SCENARIO("DoubleLinkedListIterator")
284
285
- List list;
286
TestNode node1{ 1 };
287
TestNode node2{ 2 };
288
TestNode node3{ 3 };
289
+ List list;
290
291
WHEN("iterator is used to modify elements")
292
293
list.addLast(node1);
0 commit comments