diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-14 13:41:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-15 08:27:25 +0200 |
commit | b47cb646ff2a62fcd3fac0e453a7261bbaefbcb7 (patch) | |
tree | 49a2dc78e998baa77212776d7d94fb8d72dc0f00 /svx/source/dialog | |
parent | 89e0663c55f7f1763536a345d63111115c71ef26 (diff) |
loplugin:constantparam
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/framelinkarray.cxx | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/svx/source/dialog/framelinkarray.cxx b/svx/source/dialog/framelinkarray.cxx index 513f3221d6c6..c47375073b61 100644 --- a/svx/source/dialog/framelinkarray.cxx +++ b/svx/source/dialog/framelinkarray.cxx @@ -47,7 +47,7 @@ struct Cell inline bool IsMerged() const { return mbMergeOrig || mbOverlapX || mbOverlapY; } - void MirrorSelfX( bool bMirrorStyles, bool bSwapDiag ); + void MirrorSelfX( bool bSwapDiag ); }; typedef std::vector< long > LongVec; @@ -64,23 +64,17 @@ Cell::Cell() : { } -void Cell::MirrorSelfX( bool bMirrorStyles, bool bSwapDiag ) +void Cell::MirrorSelfX( bool bSwapDiag ) { std::swap( maLeft, maRight ); std::swap( mnAddLeft, mnAddRight ); - if( bMirrorStyles ) - { - maLeft.MirrorSelf(); - maRight.MirrorSelf(); - } + maLeft.MirrorSelf(); + maRight.MirrorSelf(); if( bSwapDiag ) { std::swap( maTLBR, maBLTR ); - if( bMirrorStyles ) - { - maTLBR.MirrorSelf(); - maBLTR.MirrorSelf(); - } + maTLBR.MirrorSelf(); + maBLTR.MirrorSelf(); } } @@ -857,7 +851,7 @@ void Array::SetUseDiagDoubleClipping( bool bSet ) } // mirroring -void Array::MirrorSelfX( bool bSwapDiag ) +void Array::MirrorSelfX() { CellVec aNewCells; aNewCells.reserve( GetCellCount() ); @@ -868,7 +862,7 @@ void Array::MirrorSelfX( bool bSwapDiag ) for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol ) { aNewCells.push_back( CELL( mxImpl->GetMirrorCol( nCol ), nRow ) ); - aNewCells.back().MirrorSelfX( true, bSwapDiag ); + aNewCells.back().MirrorSelfX( false/*bSwapDiag*/ ); } } for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow ) |