CEditScriptPropertyCommand: Make use of ranged for
@@ -23,8 +23,8 @@ public:
// Convert CScriptObject pointers to CInstancePtrs
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
