diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-07 14:40:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-08 06:50:46 +0100 |
commit | c71edc1f2e8226d4ac0f06a87f4f7f7107158f82 (patch) | |
tree | 5ae7947a5c10abc5e5038a5e3a852cbbd5fd1afd /vcl | |
parent | 3b8e58b3bea6fd67cb7c5dc25115a32ca6975117 (diff) |
loplugin:fieldcast in AnimationData
Change-Id: I2697d9201dfde8978224597d4c91f92f52585a6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159087
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/animate/AnimationRenderer.hxx | 2 | ||||
-rw-r--r-- | vcl/source/animate/Animation.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/animate/AnimationRenderer.hxx b/vcl/inc/animate/AnimationRenderer.hxx index f75b88e29541..bc86e65e3f46 100644 --- a/vcl/inc/animate/AnimationRenderer.hxx +++ b/vcl/inc/animate/AnimationRenderer.hxx @@ -33,7 +33,7 @@ struct AnimationData Point maOriginStartPt; Size maStartSize; VclPtr<OutputDevice> mpRenderContext; - void* mpRendererData; + AnimationRenderer* mpRendererData; tools::Long mnRendererId; bool mbIsPaused; diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx index 5f2b8ce153ee..9063b9846a24 100644 --- a/vcl/source/animate/Animation.cxx +++ b/vcl/source/animate/Animation.cxx @@ -310,7 +310,7 @@ void Animation::PopulateRenderers() } else { - pRenderer = static_cast<AnimationRenderer*>(pDataItem->mpRendererData); + pRenderer = pDataItem->mpRendererData; } pRenderer->pause(pDataItem->mbIsPaused); |