mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fix mistake
This commit is contained in:
@@ -414,7 +414,7 @@ namespace BlackMisc
|
||||
template <class Predicate>
|
||||
void replaceOrAdd(Predicate p, const T &replacement)
|
||||
{
|
||||
if (this->contains(p)) { replaceIf(p, replacement); }
|
||||
if (this->containsBy(p)) { replaceIf(p, replacement); }
|
||||
else { push_back(replacement); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user