summaryrefslogtreecommitdiff
path: root/vcl/skia/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-30 17:31:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-30 22:45:53 +0100
commit0ae1a8cd12187b1b7197782d30d91c6a0d56f608 (patch)
treeda7dff0b09fd331e6e968fd378c1a907f6663cbe /vcl/skia/osx
parent9d7c622a9159ae17eb80bd4f0f9a865bd29deae1 (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/skia/osx')
-rw-r--r--vcl/skia/osx/gdiimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx
index 6d65eedd0ec4..38927e92c9ca 100644
--- a/vcl/skia/osx/gdiimpl.cxx
+++ b/vcl/skia/osx/gdiimpl.cxx
@@ -38,7 +38,7 @@ using namespace SkiaHelper;
AquaSkiaSalGraphicsImpl::AquaSkiaSalGraphicsImpl(AquaSalGraphics& rParent,
AquaSharedAttributes& rShared)
: SkiaSalGraphicsImpl(rParent, rShared.mpFrame)
- , AquaGraphicsBackendBase(rShared)
+ , AquaGraphicsBackendBase(rShared, this)
{
Init(); // mac code doesn't call Init()
}