diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-08-27 13:49:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-08-27 16:20:05 +0200 |
commit | c7c2b90ad4ed88856699dae2839a3437ec3a9c77 (patch) | |
tree | f2d34d9c46a3a75a19be80f5ad6f8d444cf0ebe5 | |
parent | fc87a30e64f28d5f7f19a4220910681e918244e3 (diff) |
-Werror,-Wdeprecated-anon-enum-enum-conversion
...similar to 5b8f505cd11517362b2c4a29c87d802a286a677d "Avoid
-Werror,-Wdeprecated-anon-enum-enum-conversion"
Change-Id: Ia9e8994cdb74ecdb078f347c864a89ad40321609
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121143
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | vcl/skia/osx/gdiimpl.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx index 13a5dd32aa82..c262a93c14fe 100644 --- a/vcl/skia/osx/gdiimpl.cxx +++ b/vcl/skia/osx/gdiimpl.cxx @@ -106,15 +106,16 @@ constexpr static uint32_t toCGBitmapType(SkColorType color, SkAlphaType alpha) if (alpha == kPremul_SkAlphaType) { return color == kBGRA_8888_SkColorType - ? (kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little) - : (kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); + ? (uint32_t(kCGImageAlphaPremultipliedFirst) + | uint32_t(kCGBitmapByteOrder32Little)) + : (uint32_t(kCGImageAlphaPremultipliedLast) | uint32_t(kCGBitmapByteOrder32Big)); } else { assert(alpha == kOpaque_SkAlphaType); return color == kBGRA_8888_SkColorType - ? (kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Little) - : (kCGImageAlphaNoneSkipLast | kCGBitmapByteOrder32Big); + ? (uint32_t(kCGImageAlphaNoneSkipFirst) | uint32_t(kCGBitmapByteOrder32Little)) + : (uint32_t(kCGImageAlphaNoneSkipLast) | uint32_t(kCGBitmapByteOrder32Big)); } } |