mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-15 05:02:13 -04:00
Make NavigationView an implicit first argument to any instance pushed onto nav stack.
This commit is contained in:
parent
0828c66b8a
commit
a340cbb74b
5 changed files with 20 additions and 20 deletions
|
@ -59,7 +59,7 @@ public:
|
|||
|
||||
template<class T, class... Args>
|
||||
T* push(Args&&... args) {
|
||||
return reinterpret_cast<T*>(push_view(std::unique_ptr<View>(new T(std::forward<Args>(args)...))));
|
||||
return reinterpret_cast<T*>(push_view(std::unique_ptr<View>(new T(*this, std::forward<Args>(args)...))));
|
||||
}
|
||||
|
||||
void pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue