Gvas: improve a loop to avoid a useless move.
This commit is contained in:
parent
3c79f39046
commit
f68dee939e
1 changed files with 1 additions and 5 deletions
|
@ -227,9 +227,7 @@ File::loadData() {
|
||||||
|
|
||||||
_customFormatData = Containers::Array<CustomFormatDataEntry>{custom_format_data_size};
|
_customFormatData = Containers::Array<CustomFormatDataEntry>{custom_format_data_size};
|
||||||
|
|
||||||
for(std::uint32_t i = 0; i < custom_format_data_size; i++) {
|
for(auto& entry : _customFormatData) {
|
||||||
CustomFormatDataEntry entry;
|
|
||||||
|
|
||||||
if(!reader.readStaticArray(entry.id) ||
|
if(!reader.readStaticArray(entry.id) ||
|
||||||
!reader.readInt32(entry.value))
|
!reader.readInt32(entry.value))
|
||||||
{
|
{
|
||||||
|
@ -237,8 +235,6 @@ File::loadData() {
|
||||||
LOG_ERROR(_lastError);
|
LOG_ERROR(_lastError);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_customFormatData[i] = std::move(entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!reader.readUEString(_saveType)) {
|
if(!reader.readUEString(_saveType)) {
|
||||||
|
|
Loading…
Reference in a new issue