Remove trailing whitespace (#3668)

This commit is contained in:
John Vandenberg
2022-07-07 17:18:20 +08:00
committed by GitHub
parent 0af9524e16
commit 0e6e16645c
1330 changed files with 23570 additions and 23571 deletions

View File

@@ -68,7 +68,7 @@ public:
_entries.reserve(ht._capacity);
for (auto p: ht._entries.end())
{
if (p)
if (p)
_entries.push_back(new HashEntry(p));
else
_entries.push_back(0);
@@ -90,7 +90,7 @@ public:
}
return *this;
}
void swap(SimpleHashTable& ht) noexcept
{
using std::swap;
@@ -216,12 +216,12 @@ public:
UInt32 hsh = hash(key);
return const_cast<Value&>(getRaw(key, hsh));
}
const Value& operator [] (const Key& key) const
{
return get(key);
}
Value& operator [] (const Key& key)
{
UInt32 hsh = hash(key);
@@ -326,7 +326,7 @@ public:
{
return _size;
}
UInt32 capacity() const
{
return _capacity;