Optimize container insertions using emplace_back instead of push_back

This commit is contained in:
Pugemon
2024-06-07 04:43:27 +03:00
parent f25a425cb9
commit e98fb9a1a7
9 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ static std::shared_ptr<UINode> readPageBox(UiXmlReader& reader, const xml::xmlel
}
UiXmlReader::UiXmlReader(const scriptenv& env) : env(env) {
contextStack.push("");
contextStack.emplace("");
add("image", readImage);
add("label", readLabel);
add("panel", readPanel);