@@ -13,7 +13,7 @@ use crate::view::{ViewDelegate, VIEW_DELEGATE_PTR};
1313/// Called when the view controller receives a `viewWillAppear:` message.
1414extern "C" fn will_appear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
1515 unsafe {
16- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewWillAppear: animated] ;
16+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewWillAppear: animated] ;
1717 }
1818
1919 let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
@@ -23,7 +23,7 @@ extern "C" fn will_appear<T: ViewDelegate>(this: &mut Object, _: Sel, animated:
2323/// Called when the view controller receives a `viewDidAppear:` message.
2424extern "C" fn did_appear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
2525 unsafe {
26- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewDidAppear: animated] ;
26+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewDidAppear: animated] ;
2727 }
2828
2929 let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
@@ -33,7 +33,7 @@ extern "C" fn did_appear<T: ViewDelegate>(this: &mut Object, _: Sel, animated: B
3333/// Called when the view controller receives a `viewWillDisappear:` message.
3434extern "C" fn will_disappear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
3535 unsafe {
36- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewWillDisappear: animated] ;
36+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewWillDisappear: animated] ;
3737 }
3838
3939 let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
@@ -43,7 +43,7 @@ extern "C" fn will_disappear<T: ViewDelegate>(this: &mut Object, _: Sel, animate
4343/// Called when the view controller receives a `viewDidDisappear:` message.
4444extern "C" fn did_disappear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
4545 unsafe {
46- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewDidDisappear: animated] ;
46+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewDidDisappear: animated] ;
4747 }
4848
4949 let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
0 commit comments