From 7b8a0b7c0dcf8380a6bd2d458d0e20ffc6a5d355 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Feb 2018 16:21:28 +0200 Subject: loplugin:changetoolsgen in svtools Change-Id: I63271ee3126368868db7e7e859aaaa76b15e559e Reviewed-on: https://gerrit.libreoffice.org/50023 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/brwbox/datwin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/brwbox/datwin.cxx') diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 2ca807be8276..2385b7d8b907 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -362,7 +362,7 @@ void BrowserDataWin::StartDrag( sal_Int8 _nAction, const Point& _rPosPixel ) if ( !GetParent()->bRowDividerDrag ) { Point aEventPos( _rPosPixel ); - aEventPos.Y() += GetParent()->GetTitleHeight(); + aEventPos.AdjustY(GetParent()->GetTitleHeight() ); GetParent()->StartDrag( _nAction, aEventPos ); } } @@ -394,7 +394,7 @@ void BrowserDataWin::Command( const CommandEvent& rEvt ) bInCommand = false; } - aEventPos.Y() += GetParent()->GetTitleHeight(); + aEventPos.AdjustY(GetParent()->GetTitleHeight() ); CommandEvent aEvt( aEventPos, rEvt.GetCommand(), rEvt.IsMouseEvent(), rEvt.GetEventData() ); bInCommand = true; @@ -528,7 +528,7 @@ void BrowserDataWin::Tracking( const TrackingEvent& rTEvt ) Point aMousePos = rTEvt.GetMouseEvent().GetPosPixel(); // stop resizing at our bottom line if ( aMousePos.Y() > GetOutputSizePixel().Height() ) - aMousePos.Y() = GetOutputSizePixel().Height(); + aMousePos.setY( GetOutputSizePixel().Height() ); if ( rTEvt.IsTrackingEnded() ) { -- cgit