summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 15:56:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-22 20:18:57 +0100
commit4a8968039a2e1d9e7aee10433ced1f59c0392d7a (patch)
tree7074b5b4a94b5d509487872b8201bc5872dc107e /vcl/source/window/toolbox2.cxx
parent1d7f96a324a4c2ab82a04513c6a38dc31fd061fa (diff)
loplugin:changetoolsgen in vcl
Change-Id: I0fc68cf51fb23ed9bb86a5087e8247c81b024494 Reviewed-on: https://gerrit.libreoffice.org/50107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r--vcl/source/window/toolbox2.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 6cdd0edc7fce..c1e5d9ab4d7d 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -145,16 +145,16 @@ Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, cons
if ( !bCheckMaxWidth || (aWinSize.Width() <= maxWidth) )
{
- aSize.Width() = aWinSize.Width();
- aSize.Height() = aWinSize.Height();
+ aSize.setWidth( aWinSize.Width() );
+ aSize.setHeight( aWinSize.Height() );
mbShowWindow = true;
}
else
{
if ( mbEmptyBtn )
{
- aSize.Width() = 0;
- aSize.Height() = 0;
+ aSize.setWidth( 0 );
+ aSize.setHeight( 0 );
}
}
}
@@ -163,19 +163,19 @@ Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, cons
{
if ( bHorz )
{
- aSize.Width() = mnSepSize;
- aSize.Height() = rDefaultSize.Height();
+ aSize.setWidth( mnSepSize );
+ aSize.setHeight( rDefaultSize.Height() );
}
else
{
- aSize.Width() = rDefaultSize.Width();
- aSize.Height() = mnSepSize;
+ aSize.setWidth( rDefaultSize.Width() );
+ aSize.setHeight( mnSepSize );
}
}
else if ( meType == ToolBoxItemType::BREAK )
{
- aSize.Width() = 0;
- aSize.Height() = 0;
+ aSize.setWidth( 0 );
+ aSize.setHeight( 0 );
}
return aSize;
@@ -241,10 +241,10 @@ tools::Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) const
aRect = maRect;
if( mbVisibleText && !bHorz )
// item will be rotated -> place dropdown to the bottom
- aRect.Top() = aRect.Bottom() - mnDropDownArrowWidth;
+ aRect.SetTop( aRect.Bottom() - mnDropDownArrowWidth );
else
// place dropdown to the right
- aRect.Left() = aRect.Right() - mnDropDownArrowWidth;
+ aRect.SetLeft( aRect.Right() - mnDropDownArrowWidth );
}
return aRect;
}
@@ -810,31 +810,31 @@ Point ToolBox::ImplGetPopupPosition( const tools::Rectangle& rRect ) const
{
case WindowAlign::Top:
aPos = rRect.BottomLeft();
- aPos.Y()++;
+ aPos.AdjustY( 1 );
devPos = OutputToAbsoluteScreenPixel( aPos );
if( devPos.Y() >= aScreen.Bottom() )
- aPos.Y() = rRect.Top();
+ aPos.setY( rRect.Top() );
break;
case WindowAlign::Bottom:
aPos = rRect.TopLeft();
- aPos.Y()--;
+ aPos.AdjustY( -1 );
devPos = OutputToAbsoluteScreenPixel( aPos );
if( devPos.Y() <= aScreen.Top() )
- aPos.Y() = rRect.Bottom();
+ aPos.setY( rRect.Bottom() );
break;
case WindowAlign::Left:
aPos = rRect.TopRight();
- aPos.X()++;
+ aPos.AdjustX( 1 );
devPos = OutputToAbsoluteScreenPixel( aPos );
if( devPos.X() >= aScreen.Right() )
- aPos.X() = rRect.Left();
+ aPos.setX( rRect.Left() );
break;
case WindowAlign::Right:
aPos = rRect.TopLeft();
- aPos.X()--;
+ aPos.AdjustX( -1 );
devPos = OutputToAbsoluteScreenPixel( aPos );
if( devPos.X() <= aScreen.Left() )
- aPos.X() = rRect.Right();
+ aPos.setX( rRect.Right() );
break;
default:
break;