Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2019-05-20 19:28:39 +0300
committertherzok <marius.ungureanu@xamarin.com>2019-05-23 20:06:21 +0300
commitff8937e3a38b3eba09402efa4340686bd2d17f83 (patch)
tree16bbdbe3933c29b77b187822d8c81b328957585b /main/build
parent0bb8fb2f20d5cccceac4df24f00464c9203eff35 (diff)
Simpler generics form
Diffstat (limited to 'main/build')
-rw-r--r--main/build/MacOSX/monostub.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/build/MacOSX/monostub.mm b/main/build/MacOSX/monostub.mm
index 57f4d31f42..9ea5b2f61f 100644
--- a/main/build/MacOSX/monostub.mm
+++ b/main/build/MacOSX/monostub.mm
@@ -129,7 +129,8 @@ run_md_bundle (NSString *bundleId, NSArray<NSString *> *arguments)
}
NSError *error = nil;
- mdApp = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:bundleURL options:NSWorkspaceLaunchAsync configuration:[NSDictionary dictionaryWithObject:arguments forKey:NSWorkspaceLaunchConfigurationArguments] error:&error];
+ NSDictionary<NSWorkspaceLaunchConfigurationKey, id> *configuration = [NSDictionary dictionaryWithObject:arguments forKey:NSWorkspaceLaunchConfigurationArguments];
+ mdApp = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:bundleURL options:NSWorkspaceLaunchAsync configuration: configuration error:&error];
if (mdApp == nil)
{
@@ -182,7 +183,7 @@ 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<NSString *> *arguments = [NSArray<NSString *> array];
+ NSArray<NSString *> *arguments = [NSArray array];
if (argc > 2) {
int new_argc = argc - 2;
NSMutableArray<NSString *> *array = [NSMutableArray arrayWithCapacity:new_argc];