From e8e33d5fc484bde0f393f6eb411d5e0e8d60e6dd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Jun 2022 10:40:57 +0200 Subject: [PATCH] util/IntrusiveList: add missing ToHook() calls --- src/util/IntrusiveList.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 6914f717d..938850724 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -228,7 +228,7 @@ public: n = n->next; if (pred(*i)) { - i->unlink(); + ToHook(*i).unlink(); dispose(i); } } @@ -243,13 +243,13 @@ public: } void pop_front() noexcept { - front().unlink(); + ToHook(front()).unlink(); } template void pop_front_and_dispose(D &&disposer) noexcept { auto &i = front(); - i.unlink(); + ToHook(i).unlink(); disposer(&i); } @@ -258,7 +258,7 @@ public: } void pop_back() noexcept { - back().unlink(); + ToHook(back()).unlink(); } class const_iterator;