summaryrefslogtreecommitdiff
path: root/vcl/workben
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/workben
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/workben')
-rw-r--r--vcl/workben/svpclient.cxx4
-rw-r--r--vcl/workben/svptest.cxx8
-rw-r--r--vcl/workben/vcldemo.cxx10
3 files changed, 11 insertions, 11 deletions
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index fbd6089617a2..8763ab398636 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -270,8 +270,8 @@ IMPL_LINK_NOARG( MyWin, SelectHdl, ListBox&, void)
SAL_INFO("vcl", "got bitmap of size " << aBitmap.GetSizePixel().Width() << "x" << aBitmap.GetSizePixel().Height());
Size aFixedSize( aBitmap.GetSizePixel() );
- aFixedSize.Width() += 10;
- aFixedSize.Height() += 10;
+ aFixedSize.AdjustWidth(10 );
+ aFixedSize.AdjustHeight(10 );
m_aImage->SetSizePixel( aFixedSize );
m_aImage->SetImage( Image( BitmapEx( aBitmap ) ) );
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index e1d36cfe46b7..4d33ff7934a9 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -310,11 +310,11 @@ void MyWin::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rR
rRenderContext.DrawLine(project(aP1) + aCenter,
project(aP2) + aCenter,
aLineInfo);
- aPoint.X() = static_cast<int>((static_cast<double>(aP1.X())*cosd - static_cast<double>(aP1.Y())*sind)*factor);
- aPoint.Y() = static_cast<int>((static_cast<double>(aP1.Y())*cosd + static_cast<double>(aP1.X())*sind)*factor);
+ aPoint.setX( static_cast<int>((static_cast<double>(aP1.X())*cosd - static_cast<double>(aP1.Y())*sind)*factor) );
+ aPoint.setY( static_cast<int>((static_cast<double>(aP1.Y())*cosd + static_cast<double>(aP1.X())*sind)*factor) );
aP1 = aPoint;
- aPoint.X() = static_cast<int>((static_cast<double>(aP2.X())*cosd - static_cast<double>(aP2.Y())*sind)*factor);
- aPoint.Y() = static_cast<int>((static_cast<double>(aP2.Y())*cosd + static_cast<double>(aP2.X())*sind)*factor);
+ aPoint.setX( static_cast<int>((static_cast<double>(aP2.X())*cosd - static_cast<double>(aP2.Y())*sind)*factor) );
+ aPoint.setY( static_cast<int>((static_cast<double>(aP2.Y())*cosd + static_cast<double>(aP2.X())*sind)*factor) );
aP2 = aPoint;
}
rRenderContext.Pop();
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index b3008fedf471..dc170e644fb7 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -460,8 +460,8 @@ public:
int nHeight = r.GetHeight();
// move the text to the bottom of the bounding rect before rotating
- aFontRect.Top() += nHeight/2;
- aFontRect.Bottom() += nHeight;
+ aFontRect.AdjustTop(nHeight/2 );
+ aFontRect.AdjustBottom(nHeight );
aFont.SetOrientation(45 * 10); // 45 degrees
@@ -582,7 +582,7 @@ public:
long nNewX = drawStringBox(rDev, aPos, aString,
nMaxTextHeight);
- aPos.X() = nNewX;
+ aPos.setX( nNewX );
if (aPos.X() >= r.Right())
{
@@ -1987,8 +1987,8 @@ class DemoPopup : public FloatingWindow
SetLineColor(COL_BLACK);
SetFillColor();
DrawRect( tools::Rectangle( Point(), aSize ) );
- aSize.Width() -= 2;
- aSize.Height() -= 2;
+ aSize.AdjustWidth( -2 );
+ aSize.AdjustHeight( -2 );
Color aColor( GetLineColor() );
SetLineColor( COL_GRAY );
DrawRect( tools::Rectangle( Point( 1, 1 ), aSize ) );