Skip to content

Commit

Permalink
Fixed Xcode 4.4 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
munsie committed Aug 15, 2012
1 parent b3270c6 commit 694f42d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Classes/AQGridViewUpdateItem.m
Expand Up @@ -83,32 +83,29 @@ - (NSString *) description
NSString * animationDesc = @"<Unknown>";
switch ( _animation )
{
case UITableViewRowAnimationFade:
case AQGridViewItemAnimationFade:
animationDesc = @"Fade";
break;
case UITableViewRowAnimationRight:
case AQGridViewItemAnimationRight:
animationDesc = @"Right";
break;
case UITableViewRowAnimationLeft:
case AQGridViewItemAnimationLeft:
animationDesc = @"Left";
break;
case UITableViewRowAnimationTop:
case AQGridViewItemAnimationTop:
animationDesc = @"Top";
break;
case UITableViewRowAnimationBottom:
case AQGridViewItemAnimationBottom:
animationDesc = @"Bottom";
break;
case UITableViewRowAnimationNone:
case AQGridViewItemAnimationNone:
animationDesc = @"None";
break;
case UITableViewRowAnimationMiddle:
animationDesc = @"Middle";
break;
default:
break;
}

return ( [NSString stringWithFormat: @"%@{index=%u, action=%@, animation=%@, offset=%.02f}", [super description], (unsigned)_index, actionDesc, animationDesc, _offset] );
return ( [NSString stringWithFormat: @"%@{index=%u, action=%@, animation=%@, offset=%.02d}", [super description], (unsigned)_index, actionDesc, animationDesc, _offset] );
}

- (NSComparisonResult) compare: (AQGridViewUpdateItem *) other
Expand Down

0 comments on commit 694f42d

Please sign in to comment.