mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Refactor to use push_back more efficient (#13726)
This commit is contained in:
@@ -68,7 +68,7 @@ void StringTable::Read(IReadObjectContext* context, OpenRCT2::IStream* stream, O
|
||||
entry.Id = id;
|
||||
entry.LanguageId = languageId;
|
||||
entry.Text = stringAsUtf8;
|
||||
_strings.push_back(entry);
|
||||
_strings.push_back(std::move(entry));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -149,7 +149,7 @@ void StringTable::SetString(ObjectStringID id, uint8_t language, const std::stri
|
||||
entry.Id = id;
|
||||
entry.LanguageId = language;
|
||||
entry.Text = text;
|
||||
_strings.push_back(entry);
|
||||
_strings.push_back(std::move(entry));
|
||||
}
|
||||
|
||||
void StringTable::Sort()
|
||||
|
||||
Reference in New Issue
Block a user