diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2022-07-20 19:53:47 +1000 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2022-10-09 11:27:36 +0200 |
commit | 0d463de3adc204af6892cc2b2c2d8a698237fb0c (patch) | |
tree | c7ac670c4bad5f68f52325c52972fab4f2a19968 /vcl/source | |
parent | f8afeb0e026ba70a4c8544ce7443caca601552f1 (diff) |
vcl: pAnimView to pRenderer (clarify variable name)
Change-Id: I909aa5f3b2dd1c62d4fb1f8eb3ea0f5a2e4d7ed4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136434
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/animate/Animation.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx index 9b1165655186..fb47e9698a3f 100644 --- a/vcl/source/animate/Animation.cxx +++ b/vcl/source/animate/Animation.cxx @@ -175,8 +175,8 @@ bool Animation::Start(OutputDevice& rOut, const Point& rDestPt, const Size& rDes auto itAnimView = std::find_if( maRenderers.begin(), maRenderers.end(), - [&rOut, nRendererId](const std::unique_ptr<AnimationRenderer>& pAnimView) -> bool { - return pAnimView->matches(&rOut, nRendererId); + [&rOut, nRendererId](const std::unique_ptr<AnimationRenderer>& pRenderer) -> bool { + return pRenderer->matches(&rOut, nRendererId); }); if (itAnimView != maRenderers.end()) @@ -188,7 +188,9 @@ bool Animation::Start(OutputDevice& rOut, const Point& rDestPt, const Size& rDes differs = false; } else + { maRenderers.erase(itAnimView); + } } if (maRenderers.empty()) @@ -221,8 +223,8 @@ void Animation::Stop(const OutputDevice* pOut, tools::Long nRendererId) { maRenderers.erase( std::remove_if(maRenderers.begin(), maRenderers.end(), - [=](const std::unique_ptr<AnimationRenderer>& pAnimView) -> bool { - return pAnimView->matches(pOut, nRendererId); + [=](const std::unique_ptr<AnimationRenderer>& pRenderer) -> bool { + return pRenderer->matches(pOut, nRendererId); }), maRenderers.end()); |