Skip to content
Browse files

Improving readability.

  • Loading branch information...
1 parent e043f9c commit d3f3b4cd34e991bf6a928d4e848cea4ee1ff6817 Jan Weiß committed Feb 14, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 LLManager.m
View
6 LLManager.m
@@ -45,10 +45,12 @@ + (void)setLaunchAtLogin:(BOOL)value {
+ (void)setLaunchAtLogin:(BOOL)value
notifyOnFailure:(BOOL)wantFailureNotification {
#if __has_feature(objc_arc)
- if(!SMLoginItemSetEnabled((__bridge CFStringRef)LLHelperBundleIdentifier, value)){
+ CFStringRef LLHelperBundleIdentifierCF = (__bridge CFStringRef)LLHelperBundleIdentifier;
#else
- if(!SMLoginItemSetEnabled((CFStringRef)LLHelperBundleIdentifier, value)){
+ CFStringRef LLHelperBundleIdentifierCF = (CFStringRef)LLHelperBundleIdentifier;
#endif
+
+ if(!SMLoginItemSetEnabled(LLHelperBundleIdentifierCF, value)){
if(wantFailureNotification){
[[NSNotificationCenter defaultCenter] postNotificationName:LLManagerSetLaunchAtLoginFailedNotification object:self];
}

0 comments on commit d3f3b4c

Please sign in to comment.
Something went wrong with that request. Please try again.