summaryrefslogtreecommitdiff
path: root/AK/NonnullPtrVector.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-13 19:01:28 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-13 19:52:25 +0200
commit83082b12b724846800ea605810ba11507c370d8a (patch)
tree1568109b412c4b0ef7129421ea1d6ac317421570 /AK/NonnullPtrVector.h
parent6712bbc0eeeb8635a25e4442d0d20c906dbe537f (diff)
downloadserenity-83082b12b724846800ea605810ba11507c370d8a.zip
LibWeb: Make reverse iterators work for const NonnullPtrVectors
Diffstat (limited to 'AK/NonnullPtrVector.h')
-rw-r--r--AK/NonnullPtrVector.h2
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); }