diff options
author | Andrew Kitchen <akitchen@gmail.com> | 2017-11-27 16:47:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 16:47:58 -0800 |
commit | a2817ff5ed301f0da5817279ca7184b0c22bdf21 (patch) | |
tree | c532d212c8e020ac2215a26239aa51264946f9c1 /platform/macos/src | |
parent | 5da5ba7706eb28b359b5d781bd2c769e336ca5ca (diff) | |
download | qtlocation-mapboxgl-a2817ff5ed301f0da5817279ca7184b0c22bdf21.tar.gz |
[darwin, macos, ios] Renames CGImage creation function to imply +1 retain count (#10570)
Diffstat (limited to 'platform/macos/src')
-rw-r--r-- | platform/macos/src/NSImage+MGLAdditions.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/macos/src/NSImage+MGLAdditions.mm b/platform/macos/src/NSImage+MGLAdditions.mm index 7500a8a207..2666dfe790 100644 --- a/platform/macos/src/NSImage+MGLAdditions.mm +++ b/platform/macos/src/NSImage+MGLAdditions.mm @@ -5,7 +5,7 @@ @implementation NSImage (MGLAdditions) - (nullable instancetype)initWithMGLPremultipliedImage:(mbgl::PremultipliedImage&&)src { - CGImageRef image = CGImageFromMGLPremultipliedImage(std::move(src)); + CGImageRef image = CGImageCreateWithMGLPremultipliedImage(std::move(src)); if (!image) { return nil; } @@ -16,7 +16,7 @@ } - (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)styleImage { - CGImageRef image = CGImageFromMGLPremultipliedImage(styleImage->getImage().clone()); + CGImageRef image = CGImageCreateWithMGLPremultipliedImage(styleImage->getImage().clone()); if (!image) { return nil; } |