diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 14:10:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:45 +0200 |
commit | ff745fc0d973b8d793c3ec21f258ebe695ce3ee2 (patch) | |
tree | 79a77c34041c5c9f93aea7c10bce5bfb5ec55d98 /svx/source/dialog/framelink.cxx | |
parent | c09b3e32372537be739182b02ae83a96386d1e1c (diff) |
loplugin:constantparam in svx
Change-Id: Ib2a432fc334898c75ab5e5cf629a21fd310bd467
Diffstat (limited to 'svx/source/dialog/framelink.cxx')
-rw-r--r-- | svx/source/dialog/framelink.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index 79c64c029ef2..30a3da78c64a 100644 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -908,8 +908,8 @@ LinePoints lclGetDiagLineEnds( const Rectangle& rRect, bool bTLBR, long nDiagOff // vertical top-left to bottom-right borders are handled mirrored if( bVert && bTLBR ) nDiagOffs = -nDiagOffs; - long nTOffs = bTLBR ? GetTLDiagOffset( 0, nDiagOffs, fAngle ) : GetTRDiagOffset( 0, nDiagOffs, fAngle ); - long nBOffs = bTLBR ? GetBRDiagOffset( 0, nDiagOffs, fAngle ) : GetBLDiagOffset( 0, nDiagOffs, fAngle ); + long nTOffs = bTLBR ? GetTLDiagOffset( 0, nDiagOffs, fAngle ) : GetTRDiagOffset( nDiagOffs, fAngle ); + long nBOffs = bTLBR ? GetBRDiagOffset( nDiagOffs, fAngle ) : GetBLDiagOffset( 0, nDiagOffs, fAngle ); // vertical bottom-left to top-right borders are handled with exchanged end points if( bVert && !bTLBR ) std::swap( nTOffs, nBOffs ); @@ -1312,14 +1312,14 @@ long GetBLDiagOffset( long nVerOffs, long nDiagOffs, double fAngle ) return lclD2L( -nVerOffs / tan( fAngle ) + nDiagOffs / sin( fAngle ) ); } -long GetBRDiagOffset( long nVerOffs, long nDiagOffs, double fAngle ) +long GetBRDiagOffset( long nDiagOffs, double fAngle ) { - return -lclD2L( -nVerOffs / tan( fAngle ) - nDiagOffs / sin( fAngle ) ); + return -lclD2L( - nDiagOffs / sin( fAngle ) ); } -long GetTRDiagOffset( long nVerOffs, long nDiagOffs, double fAngle ) +long GetTRDiagOffset( long nDiagOffs, double fAngle ) { - return -lclD2L( nVerOffs / tan( fAngle ) - nDiagOffs / sin( fAngle ) ); + return -lclD2L( - nDiagOffs / sin( fAngle ) ); } |