Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some problems that static analysis found. There were uses of the …

…return value of the assignment operator in a boolean context. Still doing that, because there are no tests to allow me to change the code, but now being explicit about it.
  • Loading branch information...
commit 2ddbf8252e6ebfa6e84ffacc53f81efe95345e66 1 parent 8ab7635
@arloMicrosoft arloMicrosoft authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Framework/src/odatagen/ACSUtil.m
View
4 Framework/src/odatagen/ACSUtil.m
@@ -54,7 +54,7 @@ - (void) dealloc
*/
- (id) initWithServiceName:(NSString*) aServiceName wrapName:(NSString*)aWrapName wrapPassword:(NSString*)aWrapPassword wrapScope:(NSString*)aWrapScope claims:(NSMutableDictionary*)aClaims;
{
- if(self=[super init])
+ if((self=[super init]))
{
if(aServiceName)
serviceNamespace=aServiceName;
@@ -122,7 +122,7 @@ - (NSString*) getACSToken
NSEnumerator *enumerator = [claims keyEnumerator];
NSString* key;
- while(key = [ enumerator nextObject] )
+ while((key = [ enumerator nextObject]) )
{
NSString *value = [claims objectForKey:key];
if(value)
Please sign in to comment.
Something went wrong with that request. Please try again.