diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-11-30 17:31:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-11-30 22:45:53 +0100 |
commit | 0ae1a8cd12187b1b7197782d30d91c6a0d56f608 (patch) | |
tree | da7dff0b09fd331e6e968fd378c1a907f6663cbe /vcl/quartz/AquaGraphicsBackend.cxx | |
parent | 9d7c622a9159ae17eb80bd4f0f9a865bd29deae1 (diff) |
Avoid a dynamic cross cast on macOS
...now causing
> In file included from vcl/osx/a11ytextattributeswrapper.mm:23:
> vcl/inc/quartz/salgdi.h:283:22: error: suspicious dynamic cross cast from 'AquaGraphicsBackendBase *' to 'SalGraphicsImpl *' [loplugin:crosscast]
> mpImpl = dynamic_cast<SalGraphicsImpl*>(this);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: I0c9a4af0690c195c693f986e02284a48fe753a07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143505
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz/AquaGraphicsBackend.cxx')
-rw-r--r-- | vcl/quartz/AquaGraphicsBackend.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/AquaGraphicsBackend.cxx b/vcl/quartz/AquaGraphicsBackend.cxx index aef2e3bb0f21..987ce5b784a5 100644 --- a/vcl/quartz/AquaGraphicsBackend.cxx +++ b/vcl/quartz/AquaGraphicsBackend.cxx @@ -190,7 +190,7 @@ void drawPattern50(void*, CGContextRef rContext) } AquaGraphicsBackend::AquaGraphicsBackend(AquaSharedAttributes& rShared) - : AquaGraphicsBackendBase(rShared) + : AquaGraphicsBackendBase(rShared, this) { } |