diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-14 16:39:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-15 08:37:21 +0200 |
commit | 7facde27194b866e589eada3f5657b0b5c69efb0 (patch) | |
tree | 73c66b4faf608a3ade0058ef2f72c5a49de44aaf /tools | |
parent | 9f392d0c09bd946e4660ccc2d48ee3ae1367343c (diff) |
loplugin:sequentialassign in test..tools
Change-Id: I3a6c5807c3262dde6756551e9e955c4ceae09b4f
Reviewed-on: https://gerrit.libreoffice.org/70732
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/b3dtrans.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index 99aee062eafc..1c3a420cbaf7 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -424,8 +424,7 @@ void B3dCamera::CalcNewViewportValues() aNewVUV.normalize(); aNewVPN.normalize(); - basegfx::B3DVector aNewToTheRight = aNewVPN; - aNewToTheRight = aNewToTheRight.getPerpendicular(aNewVUV); + basegfx::B3DVector aNewToTheRight = aNewVPN.getPerpendicular(aNewVUV); aNewToTheRight.normalize(); aNewVUV = aNewToTheRight.getPerpendicular(aNewVPN); aNewVUV.normalize(); @@ -450,8 +449,7 @@ void B3dCamera::CalcFocalLength() double fWidth = GetDeviceRectangleWidth(); // Adjust focal length based on given position - basegfx::B3DPoint aOldPosition; - aOldPosition = WorldToEyeCoor(aOldPosition); + basegfx::B3DPoint aOldPosition = WorldToEyeCoor(aOldPosition); if(fWidth != 0.0) fFocalLength = aOldPosition.getZ() / fWidth * 35.0; if(fFocalLength < 5.0) |