diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-24 13:47:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 07:21:04 +0100 |
commit | 08ab1f46b192a188935fdffbefdc9f3973583cdf (patch) | |
tree | 4c1ecb502f3c3b2a2a8865ea8f84a083b16d310e /vcl/source/window/scrwnd.cxx | |
parent | move MovePoint and MoveRect into Rectangle and Point (diff) | |
download | core-08ab1f46b192a188935fdffbefdc9f3973583cdf.tar.gz core-08ab1f46b192a188935fdffbefdc9f3973583cdf.zip |
loplugin:oncevar extend to tools/gen.hxx types
Change-Id: I5c75875da44334569c02e2ff039b33c38397a0a2
Reviewed-on: https://gerrit.libreoffice.org/50283
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/scrwnd.cxx')
-rw-r--r-- | vcl/source/window/scrwnd.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx index de15943f9e77..5650e8462074 100644 --- a/vcl/source/window/scrwnd.cxx +++ b/vcl/source/window/scrwnd.cxx @@ -104,8 +104,7 @@ void ImplWheelWindow::ImplSetRegion( const Bitmap& rRegionBmp ) { Point aPos( GetPointerPosPixel() ); const Size aSize( rRegionBmp.GetSizePixel() ); - Point aPoint; - const tools::Rectangle aRect( aPoint, aSize ); + const tools::Rectangle aRect( Point(), aSize ); maCenter = maLastMousePos = aPos; aPos.AdjustX( -(aSize.Width() >> 1) ); |