build: Fix swift warnings
Use 'AnyObject' instead of 'class' to restrict protocol inheritance Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
committed by
Jason A. Donenfeld
parent
3668f3af9f
commit
73c708d902
@@ -3,7 +3,7 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol TunnelEditViewControllerDelegate: class {
|
||||
protocol TunnelEditViewControllerDelegate: AnyObject {
|
||||
func tunnelSaved(tunnel: TunnelContainer)
|
||||
func tunnelEditingCancelled()
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
protocol TunnelsListTableViewControllerDelegate: class {
|
||||
protocol TunnelsListTableViewControllerDelegate: AnyObject {
|
||||
func tunnelsSelected(tunnelIndices: [Int])
|
||||
func tunnelsListEmpty()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user