Browse Source

Fix invalid reference return in IndexedListIterator

Nils Maier 12 năm trước cách đây
mục cha
commit
e25c0955c5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/IndexedList.h

+ 1 - 1
src/IndexedList.h

@@ -103,7 +103,7 @@ struct IndexedListIterator {
     return *this;
     return *this;
   }
   }
 
 
-  SelfType& operator--(int)
+  SelfType operator--(int)
   {
   {
     SelfType copy = *this;
     SelfType copy = *this;
     --*this;
     --*this;