Skip to content

Commit

Permalink
Fixed implicit conversion warning between CGImageAlphaInfo and CGBitm…
Browse files Browse the repository at this point in the history
…apInfo

Signed-off-by: Jai Govindani <[email protected]>
  • Loading branch information
Jai Govindani committed Oct 4, 2013
1 parent 5a39d1c commit 12c062f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/QWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
- (UIImage *)createBackArrowImage
{
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(nil,27,27,8,0, colorSpace,kCGImageAlphaPremultipliedLast);
CGContextRef context = CGBitmapContextCreate(nil,27,27,8,0, colorSpace,(CGBitmapInfo)kCGImageAlphaPremultipliedLast);
CFRelease(colorSpace);
CGColorRef fillColor = [[UIColor blackColor] CGColor];
CGContextSetFillColor(context, (CGFloat *) CGColorGetComponents(fillColor));
Expand All @@ -187,7 +187,7 @@ - (UIImage *)createBackArrowImage
- (UIImage *)createForwardArrowImage
{
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(nil,27,27,8,0, colorSpace,kCGImageAlphaPremultipliedLast);
CGContextRef context = CGBitmapContextCreate(nil,27,27,8,0, colorSpace,(CGBitmapInfo)kCGImageAlphaPremultipliedLast);
CFRelease(colorSpace);
CGColorRef fillColor = [[UIColor blackColor] CGColor];
CGContextSetFillColor(context, (CGFloat *) CGColorGetComponents(fillColor));
Expand Down

0 comments on commit 12c062f

Please sign in to comment.