From 95fab7cbf2f0576d0f728bed8898b7ff769d90e6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Feb 2018 10:30:46 +0200 Subject: loplugin:changetoolsgen in sc Change-Id: Ic24332cac65e665b55b9e1bbaf09ee56066875fd Reviewed-on: https://gerrit.libreoffice.org/49703 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/view/invmerge.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sc/source/ui/view/invmerge.cxx') diff --git a/sc/source/ui/view/invmerge.cxx b/sc/source/ui/view/invmerge.cxx index 647b09f02dc5..446e4fb2d93e 100644 --- a/sc/source/ui/view/invmerge.cxx +++ b/sc/source/ui/view/invmerge.cxx @@ -65,8 +65,8 @@ void ScInvertMerger::Flush() { // extend first rectangle nBottom = aOtherRect.Bottom(); - aCompRect.Bottom() = nBottom; - (*pRects)[nComparePos].Bottom() = nBottom; + aCompRect.SetBottom( nBottom ); + (*pRects)[nComparePos].SetBottom( nBottom ); // remove second rectangle pRects->erase( pRects->begin() + nOtherPos ); @@ -109,7 +109,7 @@ void ScInvertMerger::FlushLine() aLineRect.Top() == aTotalRect.Bottom() + 1 ) { // extend total rect - aTotalRect.Bottom() = aLineRect.Bottom(); + aTotalRect.SetBottom( aLineRect.Bottom() ); } else { @@ -126,8 +126,8 @@ void ScInvertMerger::AddRect( const tools::Rectangle& rRect ) tools::Rectangle aJustified = rRect; if ( rRect.Left() > rRect.Right() ) // switch for RTL layout { - aJustified.Left() = rRect.Right(); - aJustified.Right() = rRect.Left(); + aJustified.SetLeft( rRect.Right() ); + aJustified.SetRight( rRect.Left() ); } if ( aLineRect.IsEmpty() ) @@ -143,12 +143,12 @@ void ScInvertMerger::AddRect( const tools::Rectangle& rRect ) // try to extend line rect if ( aJustified.Left() == aLineRect.Right() + 1 ) { - aLineRect.Right() = aJustified.Right(); + aLineRect.SetRight( aJustified.Right() ); bDone = true; } else if ( aJustified.Right() + 1 == aLineRect.Left() ) // for RTL layout { - aLineRect.Left() = aJustified.Left(); + aLineRect.SetLeft( aJustified.Left() ); bDone = true; } } -- cgit