AK: Make HashTable with capacity constructor explicit
This commit is contained in:
parent
a8671ec166
commit
15b94ec1fd
Notes:
sideshowbarker
2024-07-18 20:32:17 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/15b94ec1fdd Pull-request: https://github.com/SerenityOS/serenity/pull/6234
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class HashTable {
|
|||
|
||||
public:
|
||||
HashTable() = default;
|
||||
HashTable(size_t capacity) { rehash(capacity); }
|
||||
explicit HashTable(size_t capacity) { rehash(capacity); }
|
||||
|
||||
~HashTable()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue