From 7b3d870516d83f0cd8fc7578e0f662d428a36f9b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Nov 2022 21:14:51 +0100 Subject: [PATCH] util/IntrusiveForwardList: remove unnecessary initializer from hook --- src/util/IntrusiveForwardList.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/IntrusiveForwardList.hxx b/src/util/IntrusiveForwardList.hxx index 147c1b62f..f496ea9d6 100644 --- a/src/util/IntrusiveForwardList.hxx +++ b/src/util/IntrusiveForwardList.hxx @@ -42,7 +42,7 @@ #include struct IntrusiveForwardListNode { - IntrusiveForwardListNode *next = nullptr; + IntrusiveForwardListNode *next; }; struct IntrusiveForwardListHook { @@ -122,7 +122,7 @@ template, bool constant_time_size=false> class IntrusiveForwardList { - IntrusiveForwardListNode head; + IntrusiveForwardListNode head{nullptr}; [[no_unique_address]] OptionalCounter counter;