From 52ed4a97cf4cf9f26c82fcd59febfa724de4ccfc Mon Sep 17 00:00:00 2001 From: lioncash Date: Wed, 24 Nov 2021 17:01:50 -0500 Subject: [PATCH] BucketList: Generify Append() and Erase() BucketList allows choosing an arbitrary type, but the interface was assuming uint32_t was only desirable --- External/FEXCore/include/FEXCore/Utils/BucketList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/External/FEXCore/include/FEXCore/Utils/BucketList.h b/External/FEXCore/include/FEXCore/Utils/BucketList.h index 73f010acc..6128edaa8 100644 --- a/External/FEXCore/include/FEXCore/Utils/BucketList.h +++ b/External/FEXCore/include/FEXCore/Utils/BucketList.h @@ -75,7 +75,7 @@ namespace FEXCore { return false; } - void Append(uint32_t Val) { + void Append(T Val) { auto that = this; while (that->Next) { @@ -96,7 +96,7 @@ namespace FEXCore { that->Next = std::make_unique>(); } } - void Erase(uint32_t Val) { + void Erase(T Val) { size_t i = 0; auto that = this; auto foundThat = this;