Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix ToT clang-sa warnings about not assigning to self.

  • Loading branch information...
commit 3b7e1f7a9489bf0ba85083594c852321e98857bb 1 parent 86b623f
@tjw tjw authored
View
4 Source/LinkBack.m
@@ -223,7 +223,7 @@ + (LinkBack*)activeLinkBackForItemKey:(id)aKey
- (id)initServerWithClient: (LinkBack*)aLinkBack delegate: (id<LinkBackServerDelegate>)aDel
{
- if (![super init])
+ if (!(self = [super init]))
return nil;
peer = [aLinkBack retain] ;
@@ -243,7 +243,7 @@ - (id)initServerWithClient: (LinkBack*)aLinkBack delegate: (id<LinkBackServerDel
- (id)initClientWithSourceName:(NSString*)aName delegate:(id<LinkBackClientDelegate>)aDel itemKey:(NSString*)aKey ;
{
- if (![super init])
+ if (!(self = [super init]))
return nil;
isServer = NO ;
View
7 Source/LinkBack.xcodeproj/project.pbxproj
@@ -206,7 +206,14 @@
isa = PBXProject;
buildConfigurationList = 4A8BBBD608AB123000C5998B /* Build configuration list for PBXProject "LinkBack" */;
compatibilityVersion = "Xcode 2.4";
+ developmentRegion = English;
hasScannedForEncodings = 1;
+ knownRegions = (
+ English,
+ Japanese,
+ French,
+ German,
+ );
mainGroup = 0867D691FE84028FC02AAC07 /* LiveLink */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
View
2  Source/LinkBackServer.m
@@ -259,7 +259,7 @@ + (LinkBackServer*)LinkBackServerWithName:(NSString*)aName inApplication:(NSStri
- (id)initWithName:(NSString*)aName bundleIdentifier:(NSString *)anIdentifier delegate:(id<LinkBackServerDelegate>)aDel
{
- if (![super init])
+ if (!(self = [super init]))
return nil;
bundleIdentifier = [anIdentifier copy];
Please sign in to comment.
Something went wrong with that request. Please try again.