CEditScriptPropertyCommand: Make use of ranged for

This commit is contained in:
Lioncash 2020-07-10 15:27:53 -04:00
parent c0c2bca54f
commit a30c6195d9
1 changed files with 3 additions and 3 deletions

View File

@ -21,10 +21,10 @@ public:
, mIndex(Index)
{
// Convert CScriptObject pointers to CInstancePtrs
mInstances.reserve( kInstances.size() );
mInstances.reserve(kInstances.size());
for (int i = 0; i < kInstances.size(); i++)
mInstances.push_back( CInstancePtr(kInstances[i]) );
for (auto* instance : kInstances)
mInstances.push_back(CInstancePtr(instance));
}
void GetObjectDataPointers(QVector<void*>& OutPointers) const override