util/IntrusiveForwardList: remove unnecessary initializer from hook

This commit is contained in:
Max Kellermann 2022-11-11 21:14:51 +01:00
parent 963ff846ff
commit 7b3d870516

View File

@ -42,7 +42,7 @@
#include <utility> #include <utility>
struct IntrusiveForwardListNode { struct IntrusiveForwardListNode {
IntrusiveForwardListNode *next = nullptr; IntrusiveForwardListNode *next;
}; };
struct IntrusiveForwardListHook { struct IntrusiveForwardListHook {
@ -122,7 +122,7 @@ template<typename T,
typename HookTraits=IntrusiveForwardListBaseHookTraits<T>, typename HookTraits=IntrusiveForwardListBaseHookTraits<T>,
bool constant_time_size=false> bool constant_time_size=false>
class IntrusiveForwardList { class IntrusiveForwardList {
IntrusiveForwardListNode head; IntrusiveForwardListNode head{nullptr};
[[no_unique_address]] [[no_unique_address]]
OptionalCounter<constant_time_size> counter; OptionalCounter<constant_time_size> counter;