diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2013-12-19 21:30:10 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2013-12-19 21:30:10 +0000 |
commit | 9b8635767148b3f95942593bfeefa86f147d2c53 (patch) | |
tree | 357cf2390edbb1d150830133228cda393203ee48 /AppKit/GTMNSWorkspace+Running.m | |
parent | ca3d74790bcf2d42bc6a9c3dc653c7e8a485705c (diff) |
Fix build of Mac GTM project with static analyzer. Remove GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton.
DELTA=447 (49 added, 296 deleted, 102 changed)
Diffstat (limited to 'AppKit/GTMNSWorkspace+Running.m')
-rw-r--r-- | AppKit/GTMNSWorkspace+Running.m | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/AppKit/GTMNSWorkspace+Running.m b/AppKit/GTMNSWorkspace+Running.m index a3a1b6d..7d6efff 100644 --- a/AppKit/GTMNSWorkspace+Running.m +++ b/AppKit/GTMNSWorkspace+Running.m @@ -19,9 +19,8 @@ #import "GTMNSWorkspace+Running.h" #import <Carbon/Carbon.h> #import <unistd.h> -#import "GTMGarbageCollection.h" #import "GTMSystemVersion.h" -#import "GTMObjectSingleton.h" + NSString *const kGTMWorkspaceRunningPSN = @"PSN"; NSString *const kGTMWorkspaceRunningFlavor = @"Flavor"; @@ -190,8 +189,14 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion"; @implementation GTMWorkspaceRunningApplicationList -GTMOBJECT_SINGLETON_BOILERPLATE(GTMWorkspaceRunningApplicationList, - sharedApplicationList) ++ (GTMWorkspaceRunningApplicationList *)sharedApplicationList { + static GTMWorkspaceRunningApplicationList *obj; + if (!obj) { + obj = [[self alloc] init]; + } + return obj; +} + - (id)init { if ((self = [super init])) { [self didLaunchOrTerminateApp:nil]; |