base: make Xml_node publicly noncopyable

This patch limits the Xml_node's copy constructor for internal use only.

Fixes #5411
This commit is contained in:
Norman Feske 2025-01-06 16:05:58 +01:00
parent 5a9016b010
commit 3cd5a69b65

View File

@ -205,6 +205,19 @@ class Genode::Xml_node
{
private:
Xml_node(Xml_node const &other)
:
_addr(other._addr), _max_len(other._max_len), _tags(other._tags)
{ }
Xml_node &operator = (Xml_node const &other)
{
_addr = other._addr;
_max_len = other._max_len;
_tags = other._tags;
return *this;
}
using Token = Xml_attribute::Token;
/**