mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
BucketList: Generify Append() and Erase()
BucketList allows choosing an arbitrary type, but the interface was assuming uint32_t was only desirable
This commit is contained in:
1 parent
db6cbbe7d4
commit
52ed4a97cf
1 file changed
+2
-2
+2
-2
@@ -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<BucketList<Size, T>>();
|
||||
}
|
||||
}
|
||||
void Erase(uint32_t Val) {
|
||||
void Erase(T Val) {
|
||||
size_t i = 0;
|
||||
auto that = this;
|
||||
auto foundThat = this;
|
||||
|
||||
Reference in new issue
Block a user