]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
const nits in subr::indexed_iterator.
authorRoland McGrath <roland@redhat.com>
Thu, 1 Oct 2009 21:00:12 +0000 (14:00 -0700)
committerRoland McGrath <roland@redhat.com>
Thu, 1 Oct 2009 21:00:12 +0000 (14:00 -0700)
libdw/c++/subr.hh

index a68d6044954103504c7fafe32ec7af7f9cb7e2e2..c080aa8a453897377257f35702d497bd592b7a55 100644 (file)
@@ -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;
       }