Use NULL, not 0, for CGImageRef initialization

No real changes, just improve consistency.
This commit is contained in:
Hertatijanto Hartono 2020-07-02 08:30:17 +07:00 committed by Vadim Zeitlin
parent 1c209f113f
commit 1676d52d2b

View File

@ -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 );