Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77c49033 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

small fix to List.h, the post-increment iterators should return "const"...

small fix to List.h, the post-increment iterators should return "const" objects to disallow constructs such as i++++
parent 81b0aa69
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public:
        mpNode = mpNode->getNext();
        return *this;
    }
    _Iter operator++(int) {          // post-increment
    const _Iter operator++(int) {    // post-increment
        _Iter tmp = *this;
        ++*this;
        return tmp;
@@ -93,7 +93,7 @@ public:
        mpNode = mpNode->getPrev();
        return *this;
    }
    _Iter operator--(int) {          // post-increment
    const _Iter operator--(int) {   // post-increment
        _Iter tmp = *this;
        --*this;
        return tmp;