Fix HashSet::Remove return value if empty
This commit is contained in:
@@ -480,7 +480,7 @@ public:
|
|||||||
bool Remove(const ItemType& item)
|
bool Remove(const ItemType& item)
|
||||||
{
|
{
|
||||||
if (IsEmpty())
|
if (IsEmpty())
|
||||||
return true;
|
return false;
|
||||||
FindPositionResult pos;
|
FindPositionResult pos;
|
||||||
FindPosition(item, pos);
|
FindPosition(item, pos);
|
||||||
if (pos.ObjectIndex != -1)
|
if (pos.ObjectIndex != -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user