mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-15 05:38:18 +00:00
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:
@ -205,6 +205,19 @@ class Genode::Xml_node
|
|||||||
{
|
{
|
||||||
private:
|
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;
|
using Token = Xml_attribute::Token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user