summaryrefslogtreecommitdiff
path: root/sw/source/ui/frmdlg
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 10:13:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 12:58:49 +0100
commit180f2860525fb7ed4892b417b20c3f2f9cbb44e0 (patch)
treef4c11ab79c1ba022f31944668eae2f20a8f5c808 /sw/source/ui/frmdlg
parentb99dd5350c21ad4096af0ae281c518b127fa37b5 (diff)
loplugin:changetoolsgen in sw
Change-Id: If07efe4c15cfc28df38a9327856d39313ca78d50 Reviewed-on: https://gerrit.libreoffice.org/50078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/frmdlg')
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx10
-rw-r--r--sw/source/ui/frmdlg/wrap.cxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx
index cdcbc6744ff7..20a2b854614a 100644
--- a/sw/source/ui/frmdlg/frmpage.cxx
+++ b/sw/source/ui/frmdlg/frmpage.cxx
@@ -2707,14 +2707,14 @@ void BmpWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle
&& (aGrfSize.Height() <= aPntSz.Height()))
{
const long nHeight = aPntSz.Height();
- aPntSz.Width() = aGrfSize.Width();
- aPntSz.Height() = aGrfSize.Height();
- aPntPos.Y() += (nHeight - aPntSz.Height()) / 2;
+ aPntSz.setWidth( aGrfSize.Width() );
+ aPntSz.setHeight( aGrfSize.Height() );
+ aPntPos.AdjustY((nHeight - aPntSz.Height()) / 2 );
}
else
- aPntSz.Width() = aPntSz.Height() * nRelGrf /100;
+ aPntSz.setWidth( aPntSz.Height() * nRelGrf /100 );
- aPntPos.X() += nWidth - aPntSz.Width() ;
+ aPntPos.AdjustX(nWidth - aPntSz.Width() ) ;
}
// #i119307# clear window background, the graphic might have transparency
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx
index d70894f38649..75039bca767b 100644
--- a/sw/source/ui/frmdlg/wrap.cxx
+++ b/sw/source/ui/frmdlg/wrap.cxx
@@ -416,10 +416,10 @@ void SwWrapTabPage::ActivatePage(const SfxItemSet& rSet)
aVal.nVRelOrient = rVert.GetRelationOrient();
if (rFrameSize.GetWidthPercent() && rFrameSize.GetWidthPercent() != SwFormatFrameSize::SYNCED)
- aSize.Width() = aSize.Width() * rFrameSize.GetWidthPercent() / 100;
+ aSize.setWidth( aSize.Width() * rFrameSize.GetWidthPercent() / 100 );
if (rFrameSize.GetHeightPercent() && rFrameSize.GetHeightPercent() != SwFormatFrameSize::SYNCED)
- aSize.Height() = aSize.Height() * rFrameSize.GetHeightPercent() / 100;
+ aSize.setHeight( aSize.Height() * rFrameSize.GetHeightPercent() / 100 );
aVal.nWidth = aSize.Width();
aVal.nHeight = aSize.Height();