Skip to content

Commit ffa147d

Browse files
Fixed analyzer warning for image representative color functions.
1 parent 1e41cc5 commit ffa147d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vinylogue/UIImage+TCSImageRepresentativeColors.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ - (RACTuple *)getRepresentativeColors{
2626
UIColor *primaryColor, *secondaryColor, *averageColor, *textColor, *textShadowColor;
2727
CGImageRef inImage = self.CGImage;
2828
// Create off screen bitmap context to draw the image into. Format ARGB is 4 bytes for each pixel: Alpa, Red, Green, Blue
29-
CGContextRef cgctx = [[self class] createARGBBitmapContextFromImage:inImage];
29+
CGContextRef cgctx = [[self class] newARGBBitmapContextFromImage:inImage];
3030
if (cgctx == NULL) { return nil; /* error */ }
3131

3232
size_t w = CGImageGetWidth(inImage);
@@ -144,7 +144,7 @@ - (RACTuple *)getRepresentativeColors{
144144
return t;
145145
}
146146

147-
+ (CGContextRef)createARGBBitmapContextFromImage:(CGImageRef)inImage{
147+
+ (CGContextRef)newARGBBitmapContextFromImage:(CGImageRef)inImage{
148148

149149
CGContextRef context = NULL;
150150
CGColorSpaceRef colorSpace;

0 commit comments

Comments
 (0)