From 1676d52d2bd98ab7b4e513c7f3b3b65f81a424c9 Mon Sep 17 00:00:00 2001 From: Hertatijanto Hartono Date: Thu, 2 Jul 2020 08:30:17 +0700 Subject: [PATCH] Use NULL, not 0, for CGImageRef initialization No real changes, just improve consistency. --- src/osx/carbon/dataobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/carbon/dataobj.cpp b/src/osx/carbon/dataobj.cpp index 010b6affd4..e9006fc55e 100644 --- a/src/osx/carbon/dataobj.cpp +++ b/src/osx/carbon/dataobj.cpp @@ -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 );