From b14fdc88a0d321cf0c37f7bfcf441ee82fea3f81 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 20 Feb 2018 11:46:07 +1100 Subject: [PATCH] Config: fixed two cases of operator!= operating the same as operator== --- src/config.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.hpp b/src/config.hpp index ea5d694163f96..5e05fae7a5c66 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -172,7 +172,7 @@ class config bool operator==(const child_iterator &i) const { return i_ == i.i_; } bool operator!=(const child_iterator &i) const { return i_ != i.i_; } bool operator==(const const_child_iterator &i) const { return i == *this; } - bool operator!=(const const_child_iterator &i) const { return i == *this; } + bool operator!=(const const_child_iterator &i) const { return i != *this; } 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_; } @@ -278,7 +278,7 @@ class config bool operator==(const attribute_iterator &i) const { return i_ == i.i_; } bool operator!=(const attribute_iterator &i) const { return i_ != i.i_; } bool operator==(const const_attribute_iterator &i) const { return i == *this; } - bool operator!=(const const_attribute_iterator &i) const { return i == *this; } + bool operator!=(const const_attribute_iterator &i) const { return i != *this; } private: friend struct config::const_attribute_iterator;