diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-09-09 16:30:59 +0430 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-10 18:05:46 +0300 |
commit | 5a0cdb15b07ef87cbab6203fad8c0dcea3634f67 (patch) | |
tree | c7d38b2113aa030893f1f22560faf8e288f00940 /Userland/Libraries/LibC | |
parent | 93cf01ad7db21ec5f48a46e206356ea791158fca (diff) | |
download | serenity-5a0cdb15b07ef87cbab6203fad8c0dcea3634f67.zip |
AK+Everywhere: Reduce the number of template parameters of IntrusiveList
This makes the user-facing type only take the node member pointer, and
lets the compiler figure out the other needed types from that.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/mallocdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/mallocdefs.h b/Userland/Libraries/LibC/mallocdefs.h index a4aad0e132..da4c8c61a5 100644 --- a/Userland/Libraries/LibC/mallocdefs.h +++ b/Userland/Libraries/LibC/mallocdefs.h @@ -75,5 +75,5 @@ struct ChunkedBlock : public CommonHeader { size_t used_chunks() const { return chunk_capacity() - m_free_chunks; } size_t chunk_capacity() const { return (block_size - sizeof(ChunkedBlock)) / m_size; } - using List = IntrusiveList<ChunkedBlock, RawPtr<ChunkedBlock>, &ChunkedBlock::m_list_node>; + using List = IntrusiveList<&ChunkedBlock::m_list_node>; }; |