mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 05:29:02 +00:00
config: Fix child/const_child_iterator implementations of operator>
These were identical to operator<, which is clearly not intended. This wouldn't trigger bugs in practice because they are currently unused (tested by compiling with the definition removed).
This commit is contained in:
parent
c3c0c9c2fd
commit
44312adfcb
@ -143,7 +143,7 @@ public:
|
|||||||
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
||||||
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
|
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
|
||||||
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
|
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
|
||||||
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ > b.i_; }
|
||||||
|
|
||||||
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
|
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
|
||||||
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }
|
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }
|
||||||
@ -184,7 +184,7 @@ public:
|
|||||||
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
||||||
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
|
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
|
||||||
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
|
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
|
||||||
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
|
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ > b.i_; }
|
||||||
|
|
||||||
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
|
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
|
||||||
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }
|
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user