C++: Make component_at() return a ComponentWeak

This commit is contained in:
Tobias Hunger 2022-03-26 16:37:15 +01:00 committed by Tobias Hunger
parent b9fddc4ae1
commit e5aadd7c26
2 changed files with 3 additions and 3 deletions

View file

@ -1395,7 +1395,7 @@ fn generate_sub_component(
subtrees_components_cases.push(format!(
"\n case {i}: {{
{e_u}
self->{id}.component_at(subtree_index, result);
*result = self->{id}.component_at(subtree_index);
return;
}}",
i = idx,