From cdb651b6a3aa90e1eb1412c810edd98b913c9ce1 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Thu, 12 Apr 2012 15:03:44 -0700 Subject: [PATCH 1/5] Adds newlines to ends of files --- SDWebImageDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDecoder.h b/SDWebImageDecoder.h index 12ea718..9c56533 100644 --- a/SDWebImageDecoder.h +++ b/SDWebImageDecoder.h @@ -33,4 +33,4 @@ + (UIImage *)decodedImageWithImage:(UIImage *)image; -@end \ No newline at end of file +@end From 2aeed9830ed1be7d3f4c8e8ffa1792aa44633432 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Thu, 12 Apr 2012 15:04:09 -0700 Subject: [PATCH 2/5] Brace-wraps inline struct initializer --- SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDecoder.m b/SDWebImageDecoder.m index 7fed5ec..2e9cdc9 100644 --- a/SDWebImageDecoder.m +++ b/SDWebImageDecoder.m @@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance; CGColorSpaceRelease(colorSpace); if (!context) return nil; - CGRect rect = (CGRect){CGPointZero, CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}; + CGRect rect = (CGRect){CGPointZero, { CGImageGetWidth(imageRef), CGImageGetHeight(imageRef) } }; CGContextDrawImage(context, rect, imageRef); CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGContextRelease(context); From 5b0a45e6ecd5cf5840234a82729abf7dd215b925 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Thu, 12 Apr 2012 15:04:27 -0700 Subject: [PATCH 3/5] Converts ints to NSUInts to avoid signed-comparison warnings --- SDWebImagePrefetcher.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDWebImagePrefetcher.m b/SDWebImagePrefetcher.m index e87e189..1fbdaae 100644 --- a/SDWebImagePrefetcher.m +++ b/SDWebImagePrefetcher.m @@ -51,9 +51,9 @@ static SDWebImagePrefetcher *instance; self.prefetchURLs = urls; // Starts prefetching from the very first image on the list with the max allowed concurrency - int listCount = [self.prefetchURLs count]; + NSUInteger listCount = [self.prefetchURLs count]; SDWebImageManager *manager = [SDWebImageManager sharedManager]; - for (int i = 0; i < self.maxConcurrentDownloads && _requestedCount < listCount; i++) + for (NSUInteger i = 0; i < self.maxConcurrentDownloads && _requestedCount < listCount; i++) { [self startPrefetchingAtIndex:i withManager:manager]; } From 89b8cf5cb06b99fefb7343660addb3a8a9de9009 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Thu, 12 Apr 2012 15:09:47 -0700 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c3dca3..2cbd845 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ time and do the right thing. Installation ------------ -You can chose to copy all the files in your project or to import the it as a static library. +There are two ways to use this in your project: copy all the files into your project, or import the project as a static library. The following instructions are adapted from the excellent "Using Open Source Static Libraries in Xcode 4" [tutorial][] from Jonah Williams. From 0237551b8f9bfd1ecdb4ca3d2f8c701c18abcb41 Mon Sep 17 00:00:00 2001 From: Christopher Bowns Date: Fri, 27 Apr 2012 12:14:38 -0700 Subject: [PATCH 5/5] Remove spaces to match code style --- SDWebImageDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDecoder.m b/SDWebImageDecoder.m index 2e9cdc9..d6db0b9 100644 --- a/SDWebImageDecoder.m +++ b/SDWebImageDecoder.m @@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance; CGColorSpaceRelease(colorSpace); if (!context) return nil; - CGRect rect = (CGRect){CGPointZero, { CGImageGetWidth(imageRef), CGImageGetHeight(imageRef) } }; + CGRect rect = (CGRect){CGPointZero,{CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}}; CGContextDrawImage(context, rect, imageRef); CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGContextRelease(context);