Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commite51e5e5fdb8fed6969aa6f608663fac9c4ac8bba (patch)
Author
 Stoycho Kyosev <stoycho.kk@gmail.com>
2022-11-12 18:35:12 +0200
Committer
 Stoycho Kyosev <stoycho.kk@gmail.com>
2022-11-12 18:35:12 +0200
Filese452ee630832126a4a47684511f271a1c3e26b34
Data-structures-and-algorithms-e51e5e5fdb8fed6969aa6f608663fac9c4ac8bba.tar
Data-structures-and-algorithms-e51e5e5fdb8fed6969aa6f608663fac9c4ac8bba.tar.gz
Data-structures-and-algorithms-e51e5e5fdb8fed6969aa6f608663fac9c4ac8bba.zip
Parentffb36c40829557e6c1cd3a18eae15c209c1d95c9 (diff)
Fix typo
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Seminar05/LinkedList.hpp6
diff --git a/Seminar05/LinkedList.hpp b/Seminar05/LinkedList.hpp
index 6242b13..1281a43 100644
--- a/Seminar05/LinkedList.hpp
+++ b/Seminar05/LinkedList.hpp
@@ -68,7 +68,7 @@ public:
}
ConstIterator operator++(int) {
- Iterator temp = *this;
+ ConstIterator temp = *this;
++(*this);
return temp;
}
@@ -112,11 +112,11 @@ public:
return Iterator(nullptr);
}
- ConstIterator cbegin() {
+ ConstIterator cbegin() const {
return ConstIterator(head);
}
- ConstIterator cend() {
+ ConstIterator cend() const {
return ConstIterator(nullptr);
}