diff --git a/src/tl/tl/tlObjectCollection.h b/src/tl/tl/tlObjectCollection.h index c2a4ff820..362868125 100644 --- a/src/tl/tl/tlObjectCollection.h +++ b/src/tl/tl/tlObjectCollection.h @@ -116,12 +116,10 @@ public: /** * @brief Post-decrement */ - weak_or_shared_collection_iterator operator-- (int n) + weak_or_shared_collection_iterator operator-- (int) { weak_or_shared_collection_iterator ret = *this; - while (n-- > 0) { - operator-- (); - } + operator-- (); return ret; } @@ -138,12 +136,10 @@ public: /** * @brief Post-increment */ - weak_or_shared_collection_iterator operator++ (int n) + weak_or_shared_collection_iterator operator++ (int) { weak_or_shared_collection_iterator ret = *this; - while (n-- > 0) { - operator++ (); - } + operator++ (); return ret; }