CAnimSet: Collapse loop into single insert call

We can perform the entire insertion all at once instead of performing
them all one by one.
This commit is contained in:
Lioncash 2020-06-22 22:30:41 -04:00
parent a2ecb2a98c
commit 5e8062cba1
1 changed files with 1 additions and 2 deletions

View File

@ -187,8 +187,7 @@ public:
void GetUniquePrimitives(std::set<CAnimPrimitive>& rPrimSet) const void GetUniquePrimitives(std::set<CAnimPrimitive>& rPrimSet) const
{ {
for (const auto& primitive : mAnimPrimitives) rPrimSet.insert(mAnimPrimitives.cbegin(), mAnimPrimitives.cend());
rPrimSet.insert(primitive);
} }
// Accessors // Accessors