Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen

This commit is contained in:
germanaizek authored and Hielke Morsink committed 2022-05-07 16:05:39 +02:00
1 parent 0045aed7f9
commit 958bfbc08a
28 files changed
+59 -67

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ void StringTable::Read(IReadObjectContext* context, OpenRCT2::IStream* stream, O
StringTableEntry entry{};
entry.Id = id;
entry.LanguageId = languageId;
entry.Text = stringAsUtf8;
entry.Text = std::move(stringAsUtf8);
_strings.push_back(std::move(entry));
}
}