Revision: 4576
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4576&view=rev
Author:   hofman
Date:     2008-09-07 13:02:29 +0000 (Sun, 07 Sep 2008)

Log Message:
-----------
only return shared instance from singleton accessor

Modified Paths:
--------------
    trunk/SKRemoteStateWindow.m

Modified: trunk/SKRemoteStateWindow.m
===================================================================
--- trunk/SKRemoteStateWindow.m 2008-09-07 12:37:38 UTC (rev 4575)
+++ trunk/SKRemoteStateWindow.m 2008-09-07 13:02:29 UTC (rev 4576)
@@ -57,7 +57,9 @@
 static id sharedRemoteStateWindow = nil;
 
 + (id)sharedRemoteStateWindow {
-    return sharedRemoteStateWindow ? sharedRemoteStateWindow : [[self alloc] 
init];
+    if (sharedRemoteStateWindow == nil)
+        [[self alloc] init];
+    return sharedRemoteStateWindow;
 }
 
 + (id)allocWithZone:(NSZone *)zone {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to