diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 10:30:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 14:17:53 +0100 |
commit | 95fab7cbf2f0576d0f728bed8898b7ff769d90e6 (patch) | |
tree | 980278716de65d8ce15bef5d76ef085da5a950a1 /sc/source/ui/view/invmerge.cxx | |
parent | 603d1773a2dfea6b347f44ddacef478577098caf (diff) |
loplugin:changetoolsgen in sc
Change-Id: Ic24332cac65e665b55b9e1bbaf09ee56066875fd
Reviewed-on: https://gerrit.libreoffice.org/49703
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/invmerge.cxx')
-rw-r--r-- | sc/source/ui/view/invmerge.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
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; } } |