summaryrefslogtreecommitdiff
path: root/vcl/source/animate
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2022-07-01 17:25:37 +1000
committerTomaž Vajngerl <quikee@gmail.com>2022-07-28 16:27:19 +0200
commit756ff6f6dfb24048c43b682a95241d5548a1bb8f (patch)
tree2bcccb4a61d5daffac42d6f5462192228e54f7d6 /vcl/source/animate
parenta697296097a55a03189e97f93ce540819f42057a (diff)
vcl: Animation - cleanup pause functions and fields
Change-Id: I8a338a92823bd4e4c1f8123d52711d0925357ee6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/76430 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/animate')
-rw-r--r--vcl/source/animate/Animation.cxx6
-rw-r--r--vcl/source/animate/AnimationRenderer.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx
index f7d6a4f27a93..0922dec2bf37 100644
--- a/vcl/source/animate/Animation.cxx
+++ b/vcl/source/animate/Animation.cxx
@@ -314,7 +314,7 @@ IMPL_LINK_NOARG(Animation, ImplTimeoutHdl, Timer*, void)
pRenderer = static_cast<AnimationRenderer*>(pDataItem->pRendererData);
}
- pRenderer->pause(pDataItem->bPause);
+ pRenderer->pause(pDataItem->mbIsPaused);
pRenderer->setMarked(true);
}
@@ -326,7 +326,7 @@ IMPL_LINK_NOARG(Animation, ImplTimeoutHdl, Timer*, void)
// check if every remaining view is paused
bGlobalPause = std::all_of(maRenderers.cbegin(), maRenderers.cend(),
- [](const auto& pRenderer) { return pRenderer->isPause(); });
+ [](const auto& pRenderer) { return pRenderer->isPaused(); });
// reset marked state
std::for_each(maRenderers.cbegin(), maRenderers.cend(),
@@ -685,7 +685,7 @@ AnimationData::AnimationData()
: pOutDev(nullptr)
, pRendererData(nullptr)
, nRendererId(0)
- , bPause(false)
+ , mbIsPaused(false)
{
}
diff --git a/vcl/source/animate/AnimationRenderer.cxx b/vcl/source/animate/AnimationRenderer.cxx
index 51aaa590d24b..e4ce509a694d 100644
--- a/vcl/source/animate/AnimationRenderer.cxx
+++ b/vcl/source/animate/AnimationRenderer.cxx
@@ -316,7 +316,7 @@ AnimationData* AnimationRenderer::createAnimationData() const
pDataItem->pOutDev = mpRenderContext;
pDataItem->pRendererData = const_cast<AnimationRenderer *>(this);
pDataItem->nRendererId = mnRendererId;
- pDataItem->bPause = mbIsPaused;
+ pDataItem->mbIsPaused = mbIsPaused;
return pDataItem;
}