Codechange: Replaced SmallVector::Find() non-const with std::find()

This commit is contained in:
Henry Wilson
2018-09-23 17:36:45 +01:00
committed by PeterN
parent f3938fdb83
commit 81315939b9
7 changed files with 12 additions and 20 deletions

View File

@@ -21,7 +21,7 @@
/* virtual */ PoolBase::~PoolBase()
{
PoolVector *pools = PoolBase::GetPools();
pools->Erase(pools->Find(this));
pools->erase(std::find(pools->begin(), pools->end(), this));
if (pools->size() == 0) delete pools;
}