mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 23:53:55 +00:00
committed by
Christian Helmuth
parent
9c31e18a4f
commit
cffa4fddec
@ -794,7 +794,7 @@ class Genode::Xml_node
|
|||||||
* Execute functor 'fn' for each sub node of specified type
|
* Execute functor 'fn' for each sub node of specified type
|
||||||
*/
|
*/
|
||||||
template <typename FN>
|
template <typename FN>
|
||||||
void for_each_sub_node(char const *type, FN const &fn)
|
void for_each_sub_node(char const *type, FN const &fn) const
|
||||||
{
|
{
|
||||||
if (_num_sub_nodes == 0)
|
if (_num_sub_nodes == 0)
|
||||||
return;
|
return;
|
||||||
@ -814,7 +814,7 @@ class Genode::Xml_node
|
|||||||
* Execute functor 'fn' for each sub node
|
* Execute functor 'fn' for each sub node
|
||||||
*/
|
*/
|
||||||
template <typename FN>
|
template <typename FN>
|
||||||
void for_each_sub_node(FN const &fn)
|
void for_each_sub_node(FN const &fn) const
|
||||||
{
|
{
|
||||||
for_each_sub_node(nullptr, fn);
|
for_each_sub_node(nullptr, fn);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user