From a25b9227ece3c61b5abe55f0b0d76216190ba9dc Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 16 Jun 2019 09:21:30 +1000 Subject: Backport: Fix Xcode static analysis warning by renmaing GetImage to CreateImage. A naming convention is used by the analyzer where a "Create" prefix is used when the reference is owned by the caller and a "Get" prefix when the reference is not owned so should not be released. Backport of changeset 7573:9da2019c1c9d. --- cocoa/ScintillaCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/ScintillaCocoa.mm') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 3eaf17665..7c70b2e60 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1456,7 +1456,7 @@ void ScintillaCocoa::StartDrag() // the full rectangle which may include non-selected text. NSBitmapImageRep* bitmap = NULL; - CGImageRef imagePixmap = pixmap.GetImage(); + CGImageRef imagePixmap = pixmap.CreateImage(); if (imagePixmap) bitmap = [[[NSBitmapImageRep alloc] initWithCGImage: imagePixmap] autorelease]; CGImageRelease(imagePixmap); -- cgit v1.2.3