From 8f50d75184cfdcb9d758e8beca6c0df840d243cd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 25 Aug 2019 17:47:32 +0200 Subject: [PATCH] AK: Make HashTable.h compile inside the SDL2 port --- AK/HashTable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/HashTable.h b/AK/HashTable.h index a8842e9458..1208d0eb2f 100644 --- a/AK/HashTable.h +++ b/AK/HashTable.h @@ -272,7 +272,7 @@ void HashTable::set(const T& value) template void HashTable::rehash(int new_capacity) { - TemporaryChange change(m_rehashing, true); + TemporaryChange change(m_rehashing, true); new_capacity *= 2; auto* new_buckets = new Bucket[new_capacity]; auto* old_buckets = m_buckets; @@ -292,7 +292,7 @@ void HashTable::rehash(int new_capacity) template void HashTable::clear() { - TemporaryChange change(m_clearing, true); + TemporaryChange change(m_clearing, true); if (m_buckets) { delete[] m_buckets; m_buckets = nullptr;