diff --git a/AK/IntrusiveList.h b/AK/IntrusiveList.h index 411f6ca220..082a93ac3b 100644 --- a/AK/IntrusiveList.h +++ b/AK/IntrusiveList.h @@ -246,7 +246,7 @@ inline Container IntrusiveList::first() const template T::*member> inline Container IntrusiveList::take_first() { - if (auto* ptr = first()) { + if (Container ptr = first()) { remove(*ptr); return ptr; } @@ -256,7 +256,7 @@ inline Container IntrusiveList::take_first() template T::*member> inline Container IntrusiveList::take_last() { - if (auto* ptr = last()) { + if (Container ptr = last()) { remove(*ptr); return ptr; }