From 694f42d1e2d1ba14208ef494e9a832bd66db528f Mon Sep 17 00:00:00 2001 From: Dennis Munsie Date: Tue, 14 Aug 2012 22:29:31 -0400 Subject: [PATCH] Fixed Xcode 4.4 warnings. --- Classes/AQGridViewUpdateItem.m | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Classes/AQGridViewUpdateItem.m b/Classes/AQGridViewUpdateItem.m index 3088d52..575fdf4 100644 --- a/Classes/AQGridViewUpdateItem.m +++ b/Classes/AQGridViewUpdateItem.m @@ -83,32 +83,29 @@ - (NSString *) description NSString * animationDesc = @""; 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