summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/MasterPageContainer.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 12:48:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 07:28:07 +0100
commit0d9f3f7628f88fa66aaeea1f7148db620e17e728 (patch)
tree51cd0289fa399fbc338e0701f7ee13be8d228eb1 /sd/source/ui/sidebar/MasterPageContainer.cxx
parentc82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (diff)
loplugin:changetoolsgen in sd
Change-Id: I41c5510f95167fe028f219fb593f12b75709bd65 Reviewed-on: https://gerrit.libreoffice.org/49726 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r--sd/source/ui/sidebar/MasterPageContainer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx
index 48deb2505e4e..2beabbe98cdc 100644
--- a/sd/source/ui/sidebar/MasterPageContainer.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainer.cxx
@@ -582,8 +582,8 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel()
break;
}
- maSmallPreviewSizePixel.Width() = SMALL_PREVIEW_WIDTH;
- maLargePreviewSizePixel.Width() = LARGE_PREVIEW_WIDTH;
+ maSmallPreviewSizePixel.setWidth( SMALL_PREVIEW_WIDTH );
+ maLargePreviewSizePixel.setWidth( LARGE_PREVIEW_WIDTH );
int nNewSmallHeight ((maSmallPreviewSizePixel.Width()-2) * nHeight / nWidth + 2);
int nNewLargeHeight ((maLargePreviewSizePixel.Width()-2) * nHeight / nWidth + 2);
@@ -591,8 +591,8 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel()
if (nNewSmallHeight!=maSmallPreviewSizePixel.Height()
|| nNewLargeHeight!=maLargePreviewSizePixel.Height())
{
- maSmallPreviewSizePixel.Height() = nNewSmallHeight;
- maLargePreviewSizePixel.Height() = nNewLargeHeight;
+ maSmallPreviewSizePixel.setHeight( nNewSmallHeight );
+ maLargePreviewSizePixel.setHeight( nNewLargeHeight );
FireContainerChange(
MasterPageContainerChangeEvent::EventType::SIZE_CHANGED,
NIL_TOKEN);