From bddb468447bd9ab6b6334e62ce1e22190757107c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 1 Oct 2009 14:00:12 -0700 Subject: [PATCH] const nits in subr::indexed_iterator. --- libdw/c++/subr.hh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libdw/c++/subr.hh b/libdw/c++/subr.hh index a68d60449..c080aa8a4 100644 --- a/libdw/c++/subr.hh +++ b/libdw/c++/subr.hh @@ -347,42 +347,42 @@ namespace elfutils return _m_contents[_m_idx + n]; } - inline indexed_iterator operator+ (const indexed_iterator &i) + inline indexed_iterator operator+ (const indexed_iterator &i) const { return indexed_iterator (_m_contents, _m_idx + i._m_idx); } inline indexed_iterator operator+ (const typename array::difference_type - &i) + &i) const { return indexed_iterator (_m_contents, _m_idx + i); } inline typename array::difference_type - operator- (const indexed_iterator &i) + operator- (const indexed_iterator &i) const { return _m_idx - i._m_idx; } - inline bool operator== (const indexed_iterator &i) + inline bool operator== (const indexed_iterator &i) const { return _m_idx == i._m_idx; } - inline bool operator!= (const indexed_iterator &i) + inline bool operator!= (const indexed_iterator &i) const { return _m_idx != i._m_idx; } - inline bool operator< (const indexed_iterator &i) + inline bool operator< (const indexed_iterator &i) const { return _m_idx < i._m_idx; } - inline bool operator> (const indexed_iterator &i) + inline bool operator> (const indexed_iterator &i) const { return _m_idx > i._m_idx; } - inline bool operator<= (const indexed_iterator &i) + inline bool operator<= (const indexed_iterator &i) const { return _m_idx <= i._m_idx; } - inline bool operator>= (const indexed_iterator &i) + inline bool operator>= (const indexed_iterator &i) const { return _m_idx >= i._m_idx; } -- 2.47.3