summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterSlideSorter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 21:25:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-19 13:19:45 +0200
commit8b663bc830605a0065184b299bea9cd3682d7935 (patch)
tree9dd047c9b6423ba047a6c7a1371ee9f658b7e26d /sdext/source/presenter/PresenterSlideSorter.cxx
parent1a5b12aa5da2c718848d3cc5d9bce7bfcdeacf54 (diff)
loplugin:sequentialassign in sd
Change-Id: I7d592b8929ca46c64a622551b039af0d6a7911db Reviewed-on: https://gerrit.libreoffice.org/70716 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/presenter/PresenterSlideSorter.cxx')
-rw-r--r--sdext/source/presenter/PresenterSlideSorter.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx
index 8d206f9f890f..1ee15e43e993 100644
--- a/sdext/source/presenter/PresenterSlideSorter.cxx
+++ b/sdext/source/presenter/PresenterSlideSorter.cxx
@@ -1203,8 +1203,7 @@ void PresenterSlideSorter::Layout::SetupVisibleArea()
bool PresenterSlideSorter::Layout::IsScrollBarNeeded (const sal_Int32 nSlideCount)
{
- geometry::RealPoint2D aBottomRight;
- aBottomRight = GetPoint(
+ geometry::RealPoint2D aBottomRight = GetPoint(
mnColumnCount * (GetRow(nSlideCount)+1) - 1, +1, +1);
return aBottomRight.X > maBoundingBox.X2-maBoundingBox.X1
|| aBottomRight.Y > maBoundingBox.Y2-maBoundingBox.Y1;
@@ -1391,8 +1390,7 @@ bool PresenterSlideSorter::Layout::SetVerticalOffset (const double nOffset)
void PresenterSlideSorter::Layout::UpdateScrollBars()
{
- sal_Int32 nTotalRowCount (0);
- nTotalRowCount = sal_Int32(ceil(double(mnSlideCount) / double(mnColumnCount)));
+ sal_Int32 nTotalRowCount = sal_Int32(ceil(double(mnSlideCount) / double(mnColumnCount)));
if (mpVerticalScrollBar.get() != nullptr)
{