summaryrefslogtreecommitdiff
path: root/AK/Iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Iterator.h')
-rw-r--r--AK/Iterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Iterator.h b/AK/Iterator.h
index db0c9890c2..bf45c03862 100644
--- a/AK/Iterator.h
+++ b/AK/Iterator.h
@@ -55,8 +55,8 @@ public:
ALWAYS_INLINE constexpr const ValueType& operator*() const { return m_container[m_index]; }
ALWAYS_INLINE constexpr ValueType& operator*() { return m_container[m_index]; }
- constexpr const ValueType* operator->() const { return &m_container[m_index]; }
- constexpr ValueType* operator->() { return &m_container[m_index]; }
+ constexpr auto operator->() const { return &m_container[m_index]; }
+ constexpr auto operator->() { return &m_container[m_index]; }
SimpleIterator& operator=(const SimpleIterator& other)
{