mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 16:37:02 +00:00
General: Make use of ranged for where applicable
This commit is contained in:
@@ -11,7 +11,7 @@ void IEditPropertyCommand::SaveObjectStateToArray(std::vector<char>& rVector)
|
||||
QVector<void*> DataPointers;
|
||||
GetObjectDataPointers(DataPointers);
|
||||
|
||||
foreach (void* pData, DataPointers)
|
||||
for (void* pData : DataPointers)
|
||||
{
|
||||
mpProperty->SerializeValue(pData, Writer);
|
||||
}
|
||||
@@ -25,7 +25,7 @@ void IEditPropertyCommand::RestoreObjectStateFromArray(std::vector<char>& rArray
|
||||
QVector<void*> DataPointers;
|
||||
GetObjectDataPointers(DataPointers);
|
||||
|
||||
foreach (void* pData, DataPointers)
|
||||
for (void* pData : DataPointers)
|
||||
{
|
||||
mpProperty->SerializeValue(pData, Reader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user