Skip to content

Commit

Permalink
Fix IDE warning code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dismory committed Jan 13, 2012
1 parent c791823 commit 28d851d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UIColor-Expanded.m
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ @implementation UIColor (UIColor_Expanded_Support)
+ (void)populateColorNameCache {
NSAssert(colorNameCache == nil, @"+pouplateColorNameCache was called when colorNameCache was not nil");
NSMutableDictionary *cache = [NSMutableDictionary dictionary];
for (const char* entry = colorNameDB; entry = strchr(entry, ','); ) {
for (const char* entry = colorNameDB; (entry = strchr(entry, ',')); ) {

// Step forward to the start of the name
++entry;
Expand All @@ -767,7 +767,7 @@ + (void)populateColorNameCache {
+ (void)populateCrayolaNameCache {
NSAssert(crayolaNameCache == nil, @"+pouplateCrayolaNameCache was called when crayolaNameCache was not nil");
NSMutableDictionary *cache = [NSMutableDictionary dictionary];
for (const char* entry = crayolaNameDB; entry = strchr(entry, ','); ) {
for (const char* entry = crayolaNameDB; (entry = strchr(entry, ',')); ) {

// Step forward to the start of the name
++entry;
Expand Down

0 comments on commit 28d851d

Please sign in to comment.