Adopting lightweight generics (#2974)

This commit is contained in:
Antoine Cœur
2022-04-30 06:51:40 +08:00
committed by GitHub
parent aafedcaae1
commit 34ec2f5aa4
42 changed files with 141 additions and 132 deletions

View File

@@ -19,7 +19,7 @@
return helper;
}
- (NSArray*)shareTorrentURLs
- (NSArray<NSURL*>*)shareTorrentURLs
{
NSArray* torrents = ((Controller*)NSApp.delegate).selectedTorrents;
NSMutableArray* fileURLs = [NSMutableArray arrayWithCapacity:torrents.count];
@@ -34,7 +34,7 @@
return fileURLs;
}
- (NSArray*)menuItems
- (NSArray<NSMenuItem*>*)menuItems
{
NSArray* services = [NSSharingService sharingServicesForItems:self.shareTorrentURLs];
NSMutableArray* items = [NSMutableArray arrayWithCapacity:services.count];