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:
parent
a2ecb2a98c
commit
5e8062cba1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue