mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Adopting lightweight generics (#2974)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user