mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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:
parent
444bc18fcf
commit
93288bccb3
@ -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;
|
||||
|
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user