os: Refer to ::Sandbox::Child explicitly.

When compiling this code, clang complains reference to 'Sandbox' is
ambiguous. It can either mean ::Sandbox namespace from
os/src/lib/sandbox/types.h, or Genode::Sandbox declared in
repos/os/include/os/sandbox.h. Since the code refers to ::Sandbox::Child
and its already in ::Sandbox namespace we can just drop "Sandbox" and
refer to just Child, which makes clang happy.

Issue #3938
This commit is contained in:
Piotr Tworek 2020-09-16 00:23:19 +02:00 committed by Christian Helmuth
parent 444bc18fcf
commit 93288bccb3
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class Sandbox::Child_registry : public Name_registry, Child_list
bool _unique(const char *name) const
{
/* check for name clash with an existing child */
List_element<Sandbox::Child> const *curr = first();
List_element<Child> const *curr = first();
for (; curr; curr = curr->next())
if (curr->object()->has_name(name))
return false;

View File

@ -28,7 +28,7 @@ namespace Sandbox {
struct Prio_levels { long value; };
typedef List<List_element<Sandbox::Child> > Child_list;
typedef List<List_element<Child> > Child_list;
}
#endif /* _LIB__SANDBOX__TYPES_H_ */