Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 32ea99e

Browse files
committed
Feedback
1 parent 49f64a5 commit 32ea99e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

shell/platform/embedder/embedder.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,15 @@ CreateNewEmbedderSemanticsUpdateCallback2(
14191419
const flutter::SemanticsNodeUpdates& nodes,
14201420
const flutter::CustomAccessibilityActionUpdates& actions) {
14211421
std::vector<FlutterSemanticsNode2> embedder_nodes;
1422+
std::vector<FlutterSemanticsCustomAction2> embedder_custom_actions;
1423+
1424+
embedder_nodes.reserve(nodes.size());
1425+
embedder_custom_actions.reserve(nodes.size());
1426+
14221427
for (const auto& value : nodes) {
14231428
embedder_nodes.push_back(CreateEmbedderSemanticsNode2(value.second));
14241429
}
14251430

1426-
std::vector<FlutterSemanticsCustomAction2> embedder_custom_actions;
14271431
for (const auto& value : actions) {
14281432
embedder_custom_actions.push_back(
14291433
CreateEmbedderSemanticsCustomAction2(value.second));

0 commit comments

Comments
 (0)