From 5f73e5a7cdd14ff8d6a17874ccd3fa39bad0bdce Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 16 Jun 2019 09:21:30 +1000 Subject: 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. --- cocoa/PlatCocoa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/PlatCocoa.h') diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index 7a2c578e9..7dbc32487 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -80,7 +80,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; -- cgit v1.2.3