diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-21 12:23:57 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-21 12:23:57 +0000 |
commit | fdaa13de0954d498c4b591f80bde7af9f2035bb4 (patch) | |
tree | b476707634e0e81ccd6d1fd285c50caf3b97849c | |
parent | 3dcadeb1806b98e8820a38aebc4d7351f6c5856d (diff) | |
download | sequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.tar.gz sequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.tar.bz2 sequelpro-fdaa13de0954d498c4b591f80bde7af9f2035bb4.zip |
• minor code cleaning (plus svn test)
-rw-r--r-- | Source/SPArrayAdditions.m | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/SPArrayAdditions.m b/Source/SPArrayAdditions.m index 37b1ba62..bce26872 100644 --- a/Source/SPArrayAdditions.m +++ b/Source/SPArrayAdditions.m @@ -27,19 +27,19 @@ @implementation NSArray (SPArrayAdditions) -- (NSString *)componentsJoinedAndBacktickQuoted; /* * This method quotes all elements with backticks and then joins them with * commas. Use it for field lists as in "SELECT (...) FROM somewhere" */ +- (NSString *)componentsJoinedAndBacktickQuoted; { - NSString *result = [NSString string]; - for (NSString *component in self) - { - if ([result length]) result = [result stringByAppendingString: @","]; - result = [result stringByAppendingString: [component backtickQuotedString] ]; - } - return result; + NSString *result = [NSString string]; + for (NSString *component in self) + { + if ([result length]) result = [result stringByAppendingString: @","]; + result = [result stringByAppendingString: [component backtickQuotedString] ]; + } + return result; } - (NSString *)componentsJoinedByCommas @@ -51,7 +51,7 @@ { result = [result stringByAppendingString:@","]; } - + result = [result stringByAppendingString:component]; } return result; |