CAnimSet: Collapse loop into single insert call
We can perform the entire insertion all at once instead of performing
them all one by one.
@@ -187,8 +187,7 @@ public:
void GetUniquePrimitives(std::set<CAnimPrimitive>& rPrimSet) const
{
- for (const auto& primitive : mAnimPrimitives)
- rPrimSet.insert(primitive);
+ rPrimSet.insert(mAnimPrimitives.cbegin(), mAnimPrimitives.cend());
}
// Accessors
