diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2019-06-16 09:21:30 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2019-06-16 09:21:30 +1000 |
commit | 5f73e5a7cdd14ff8d6a17874ccd3fa39bad0bdce (patch) | |
tree | 751227042cd7ba5a58b9cd8c0264a71c83303cf0 /cocoa/ScintillaCocoa.mm | |
parent | ae703a47e6ad96c83376f4958f2fafee8135735f (diff) | |
download | scintilla-mirror-5f73e5a7cdd14ff8d6a17874ccd3fa39bad0bdce.tar.gz |
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.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index ffb365d13..9a507e55c 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1409,7 +1409,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]; CGImageRelease(imagePixmap); |