mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 22:23:16 +00:00
dialog: let 'Scope::widget' take 'hosted' as const
This eases the use of temporary 'Hosted' objects. The 'view' code path is not expected to modify any state. Issue #5008 Issue #5053
This commit is contained in:
parent
1aba8182a4
commit
ec60011852
@ -260,7 +260,7 @@ struct Dialog::Scope : Noncopyable
|
||||
}
|
||||
|
||||
template <typename HOSTED, typename... ARGS>
|
||||
void widget(HOSTED &hosted, ARGS &&... args)
|
||||
void widget(HOSTED const &hosted, ARGS &&... args)
|
||||
{
|
||||
hosted._view_hosted(*this, args...);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user