@@ -13,7 +13,7 @@ use crate::view::{ViewDelegate, VIEW_DELEGATE_PTR};
13
13
/// Called when the view controller receives a `viewWillAppear:` message.
14
14
extern "C" fn will_appear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
15
15
unsafe {
16
- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewWillAppear: animated] ;
16
+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewWillAppear: animated] ;
17
17
}
18
18
19
19
let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
@@ -23,7 +23,7 @@ extern "C" fn will_appear<T: ViewDelegate>(this: &mut Object, _: Sel, animated:
23
23
/// Called when the view controller receives a `viewDidAppear:` message.
24
24
extern "C" fn did_appear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
25
25
unsafe {
26
- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewDidAppear: animated] ;
26
+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewDidAppear: animated] ;
27
27
}
28
28
29
29
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
33
33
/// Called when the view controller receives a `viewWillDisappear:` message.
34
34
extern "C" fn will_disappear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
35
35
unsafe {
36
- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewWillDisappear: animated] ;
36
+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewWillDisappear: animated] ;
37
37
}
38
38
39
39
let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
@@ -43,7 +43,7 @@ extern "C" fn will_disappear<T: ViewDelegate>(this: &mut Object, _: Sel, animate
43
43
/// Called when the view controller receives a `viewDidDisappear:` message.
44
44
extern "C" fn did_disappear < T : ViewDelegate > ( this : & mut Object , _: Sel , animated : BOOL ) {
45
45
unsafe {
46
- let _: ( ) = msg_send ! [ super ( this, class!( UIViewController ) ) , viewDidDisappear: animated] ;
46
+ let _: ( ) = msg_send ! [ super ( & mut * this, class!( UIViewController ) ) , viewDidDisappear: animated] ;
47
47
}
48
48
49
49
let controller = load :: < T > ( this, VIEW_DELEGATE_PTR ) ;
0 commit comments