Removed compile warnings.

This commit is contained in:
Dmytro Tretiakov committed 2015-11-02 12:24:46 +02:00
1 parent d79643b458
commit d6a37dcdf1
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ static const NSTimeInterval SUInstallationTimeLimit = 5;
NSError *error = nil;
[[NSWorkspace sharedWorkspace] launchApplicationAtURL:[NSURL fileURLWithPath:relaunchPath]
options:NSWorkspaceLaunchNewInstance
configuration:nil
configuration:@{}
error:&error];
if (error.code != noErr)
{
+3 -3
View File
@@ -500,10 +500,10 @@ CF_EXPORT CFDictionaryRef DMCopyHTTPRequestHeaders(CFBundleRef appBundle, CFData
if ([updaterDelegate respondsToSelector:@selector(pathToRelaunchForUpdater:)]) {
pathToRelaunch = [updaterDelegate pathToRelaunchForUpdater:self.updater];
}
NSArray *arguments = @[[self.host bundlePath] ?: @"",
pathToRelaunch ?: @"",
NSArray *arguments = @[self.host.bundlePath.length ? self.host.bundlePath: @"",
pathToRelaunch.length ? pathToRelaunch : @"",
[NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]],
self.tempDir ?: @"",
self.tempDir.length ? self.tempDir : @"",
relaunch ? @"1" : @"0",
showUI ? @"1" : @"0"];
if (SUShouldUseXPCInstaller())