This repository was archived by the owner on Dec 11, 2025. It is now read-only.
Commit 4dccdb6
This change fixes the warning generated by clang when we enable -Wobjc-property-assign-on-object-type flag under the ARC environment.
Clang with the flag generates the warning if a property to an Objective-C object/block has an assign attribute because an assign property is treated as unretained property and it potentially becomes a dangling pointer.
The flag is added by llvm/llvm-project@52a503d4f333d
So using strong / weak / copy would be better in general.
selectedViewController is the currently selected view controller and the view must be in viewControllers which is strongly retained.
I think it's safe to use weak to selectedViewController.
PiperOrigin-RevId: 7558615521 parent f25aad8 commit 4dccdb6
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments