diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-05-20 18:59:37 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-05-23 20:06:21 +0300 |
commit | 0bb8fb2f20d5cccceac4df24f00464c9203eff35 (patch) | |
tree | b4a0caaafc6e8718e6a7fe2f574e33eb094bf3b3 /main/build | |
parent | 64c0d4c756ec6c197f96558bc3b18e61d9bde79a (diff) |
Use generic NSArray
Diffstat (limited to 'main/build')
-rw-r--r-- | main/build/MacOSX/monostub.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/build/MacOSX/monostub.mm b/main/build/MacOSX/monostub.mm index 21b3716506..57f4d31f42 100644 --- a/main/build/MacOSX/monostub.mm +++ b/main/build/MacOSX/monostub.mm @@ -105,13 +105,13 @@ get_mono_env_options (int *ref_argc, char **ref_argv [], void *libmono) } static void -run_md_bundle (NSString *bundleId, NSArray *arguments) +run_md_bundle (NSString *bundleId, NSArray<NSString *> *arguments) { NSURL *bundleURL = [[NSBundle mainBundle] bundleURL]; int myPID = [[NSProcessInfo processInfo] processIdentifier]; NSRunningApplication *mdApp = nil; - NSArray *runningApplications = [NSRunningApplication runningApplicationsWithBundleIdentifier:bundleId]; + NSArray<NSRunningApplication *> *runningApplications = [NSRunningApplication runningApplicationsWithBundleIdentifier:bundleId]; for (NSRunningApplication *app in runningApplications) { if ([[[app bundleURL] path] isEqual:[bundleURL path]] && myPID != [app processIdentifier]) { @@ -182,10 +182,10 @@ run_md_bundle_if_needed(int argc, char **argv) // if we are running inside an app bundle and --start-app-bundle has been passed // run the actual bundle and exit. if (bundleId && argc > 1 && !strcmp(argv[1], "--start-app-bundle")) { - NSArray *arguments = [NSArray array]; + NSArray<NSString *> *arguments = [NSArray<NSString *> array]; if (argc > 2) { int new_argc = argc - 2; - NSMutableArray *array = [NSMutableArray arrayWithCapacity:new_argc]; + NSMutableArray<NSString *> *array = [NSMutableArray arrayWithCapacity:new_argc]; for (int i = 2; i < new_argc; i++) [array addObject:[NSString stringWithUTF8String:argv[i]]]; arguments = array; |