diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-13 19:01:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-13 19:52:25 +0200 |
commit | 83082b12b724846800ea605810ba11507c370d8a (patch) | |
tree | 1568109b412c4b0ef7129421ea1d6ac317421570 /AK | |
parent | 6712bbc0eeeb8635a25e4442d0d20c906dbe537f (diff) | |
download | serenity-83082b12b724846800ea605810ba11507c370d8a.zip |
LibWeb: Make reverse iterators work for const NonnullPtrVectors
Diffstat (limited to 'AK')
-rw-r--r-- | AK/NonnullPtrVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/NonnullPtrVector.h b/AK/NonnullPtrVector.h index c95e8c2a50..6471dd3586 100644 --- a/AK/NonnullPtrVector.h +++ b/AK/NonnullPtrVector.h @@ -32,7 +32,7 @@ public: using ConstIterator = SimpleIterator<const NonnullPtrVector, const T>; using Iterator = SimpleIterator<NonnullPtrVector, T>; using ReverseIterator = SimpleReverseIterator<NonnullPtrVector, T>; - using ReverseConstIterator = SimpleReverseIterator<NonnullPtrVector, T const>; + using ReverseConstIterator = SimpleReverseIterator<NonnullPtrVector const, T const>; ALWAYS_INLINE constexpr ConstIterator begin() const { return ConstIterator::begin(*this); } ALWAYS_INLINE constexpr Iterator begin() { return Iterator::begin(*this); } |