Use NULL, not 0, for CGImageRef initialization
No real changes, just improve consistency.
This commit is contained in:
parent
1c209f113f
commit
1676d52d2b
@ -703,7 +703,7 @@ bool wxBitmapDataObject::SetData( size_t nSize, const void *pBuf )
|
||||
if ((pBuf == NULL) || (nSize == 0))
|
||||
return false;
|
||||
|
||||
CGImageRef cgImageRef = 0;
|
||||
CGImageRef cgImageRef = NULL;
|
||||
|
||||
CFDataRef data = CFDataCreate( kCFAllocatorDefault, (const UInt8*) pBuf, nSize);
|
||||
CGImageSourceRef source = CGImageSourceCreateWithData( data, NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user