AK: Make HashTable with capacity constructor explicit

This commit is contained in:
Brian Gianforcaro 2021-04-11 01:24:35 -07:00 committed by Andreas Kling
parent a8671ec166
commit 15b94ec1fd
Notes: sideshowbarker 2024-07-18 20:32:17 +09:00

View file

@ -87,7 +87,7 @@ class HashTable {
public:
HashTable() = default;
HashTable(size_t capacity) { rehash(capacity); }
explicit HashTable(size_t capacity) { rehash(capacity); }
~HashTable()
{