diff options
Diffstat (limited to 'AK/Iterator.h')
-rw-r--r-- | AK/Iterator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Iterator.h b/AK/Iterator.h index 953c091967..76b078386a 100644 --- a/AK/Iterator.h +++ b/AK/Iterator.h @@ -58,12 +58,12 @@ public: ALWAYS_INLINE constexpr ValueType const* operator->() const { return &m_container[m_index]; } ALWAYS_INLINE constexpr ValueType* operator->() { return &m_container[m_index]; } - SimpleIterator& operator=(const SimpleIterator& other) + SimpleIterator& operator=(SimpleIterator const& other) { m_index = other.m_index; return *this; } - SimpleIterator(const SimpleIterator& obj) = default; + SimpleIterator(SimpleIterator const& obj) = default; private: static constexpr SimpleIterator begin(Container& container) { return { container, 0 }; } |