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 | a25b9227ece3c61b5abe55f0b0d76216190ba9dc (patch) | |
tree | 3ba2a8ecea6b54c8b354d82bfc785c5ae0e7e478 /cocoa/PlatCocoa.h | |
parent | 9aa30a8b9d05b183226f99b3e3981a3acab8cb90 (diff) | |
download | scintilla-mirror-a25b9227ece3c61b5abe55f0b0d76216190ba9dc.tar.gz |
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.
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r-- | cocoa/PlatCocoa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index c9b3a8355..9824734e3 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -82,7 +82,7 @@ public: void PenColour(ColourDesired fore) override; /** Returns a CGImageRef that represents the surface. Returns NULL if this is not possible. */ - CGImageRef GetImage(); + CGImageRef CreateImage(); void CopyImageRectangle(Surface &surfaceSource, PRectangle srcRect, PRectangle dstRect); int LogPixelsY() override; |