base: don't copy Xml_node

Issue #5411
This commit is contained in:
Norman Feske
2025-03-24 11:46:26 +01:00
parent 25d4b8f944
commit f3e4e04de7
3 changed files with 19 additions and 16 deletions

View File

@ -166,7 +166,7 @@ void Genode::List_model<ELEM>::update_from_xml(Xml_node const &node,
ELEM *last_updated = nullptr; /* used for appending to 'updated_list' */
node.for_each_sub_node([&] (Xml_node sub_node) {
node.for_each_sub_node([&] (Xml_node const &sub_node) {
/* skip XML nodes that are unrelated to the data model */
if (!ELEM::type_matches(sub_node))