Fix ARC warning (fix #116)

This commit is contained in:
Olivier Poitrey 2012-05-12 00:24:27 +02:00
parent af3924c447
commit fc24642149
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
53A2B4F7155B095800B12423 /* libSDWebImage.a */, 53A2B4F7155B095800B12423 /* libSDWebImage.a */,
53A2B4F9155B095800B12423 /* libSDWebImage ARC.a */, 53A2B4F9155B095800B12423 /* libSDWebImageARC.a */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
@ -219,7 +219,7 @@
remoteRef = 53A2B4F6155B095800B12423 /* PBXContainerItemProxy */; remoteRef = 53A2B4F6155B095800B12423 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR; sourceTree = BUILT_PRODUCTS_DIR;
}; };
53A2B4F9155B095800B12423 /* libSDWebImage ARC.a */ = { 53A2B4F9155B095800B12423 /* libSDWebImageARC.a */ = {
isa = PBXReferenceProxy; isa = PBXReferenceProxy;
fileType = archive.ar; fileType = archive.ar;
path = libSDWebImageARC.a; path = libSDWebImageARC.a;

View File

@ -159,7 +159,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
// Update the data source, we must pass ALL the data, not just the new bytes // Update the data source, we must pass ALL the data, not just the new bytes
CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL); CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL);
CGImageSourceUpdateData(imageSource, (CFDataRef)imageData, totalSize == expectedSize); CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)imageData, totalSize == expectedSize);
if (width + height == 0) if (width + height == 0)
{ {