vcl/inc/animate/AnimationRenderer.hxx |    2 +-
 vcl/source/animate/Animation.cxx      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c71edc1f2e8226d4ac0f06a87f4f7f7107158f82
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Nov 7 14:40:22 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Nov 8 06:50:46 2023 +0100

    loplugin:fieldcast in AnimationData
    
    Change-Id: I2697d9201dfde8978224597d4c91f92f52585a6c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159087
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

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);

Reply via email to