diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-13 14:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 12:50:37 +0100 |
commit | f841dada1a5018897cce29ccf972da33ece4738c (patch) | |
tree | af861d8c6abf98eed1b20ba7fdab2b3997d6e9be /cui/source/customize/macropg.cxx | |
parent | 9763383ebb7e5b10ba9e7557dffa803a8d392c0d (diff) |
loplugin:changetoolsgen in canvas..cui
Change-Id: I4e320055a3dbe4159c2aa2714e1ee98182e1e80a
Reviewed-on: https://gerrit.libreoffice.org/49642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/customize/macropg.cxx')
-rw-r--r-- | cui/source/customize/macropg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 14efa4bb1ed4..e5c7629390f9 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -106,7 +106,7 @@ IMPL_LINK( MacroEventListBox, HeaderEndDrag_Impl, HeaderBar*, pBar, void ) for( sal_uInt16 i = 1 ; i < _nTabs ; ++i ) { long _nWidth = maHeaderBar->GetItemSize( i ); - aSz.Width() = _nWidth + nTmpSz; + aSz.setWidth( _nWidth + nTmpSz ); nTmpSz += _nWidth; maListBox->SetTab( i, PixelToLogic( aSz, MapMode( MapUnit::MapAppFont ) ).Width() ); } @@ -166,11 +166,11 @@ void MacroEventListBox::Resize() Point aPnt( 0, 0 ); Size aSize( maHeaderBar->CalcWindowSizePixel() ); Size aCtrlSize( GetOutputSizePixel() ); - aSize.Width() = aCtrlSize.Width(); + aSize.setWidth( aCtrlSize.Width() ); maHeaderBar->SetPosSizePixel( aPnt, aSize ); // calc pos and size of ListBox - aPnt.Y() += aSize.Height(); + aPnt.setY( aPnt.Y() + aSize.Height() ); aSize.Height() = aCtrlSize.Height() - aSize.Height(); maListBox->SetPosSizePixel( aPnt, aSize ); } @@ -473,7 +473,7 @@ void IconLBoxString::Paint(const Point& aPos, SvTreeListBox& /*aDevice*/, vcl::R } Point aPnt(aPos); - aPnt.X() += 20; + aPnt.setX( aPnt.X() + 20 ); rRenderContext.DrawText(aPnt, aPureMethod); } } @@ -713,7 +713,7 @@ void SvxMacroTabPage_::InitAndSetHandler( const Reference< container::XNameRepla rListBox.SetTabs( &nTabs[0] ); Size aSize( nTabs[ 2 ], 0 ); rHeaderBar.InsertItem( ITEMID_EVENT, mpImpl->sStrEvent, LogicToPixel( aSize, MapMode( MapUnit::MapAppFont ) ).Width() ); - aSize.Width() = 1764; // don't know what, so 42^2 is best to use... + aSize.setWidth( 1764 ); // don't know what, so 42^2 is best to use... rHeaderBar.InsertItem( ITMEID_ASSMACRO, mpImpl->sAssignedMacro, LogicToPixel( aSize, MapMode( MapUnit::MapAppFont ) ).Width() ); rListBox.SetSpaceBetweenEntries( 0 ); |