From 0e335af4d3f044511551fa2ede20911beaee9b41 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 17 Apr 2019 14:00:30 +0200 Subject: Fix uses of variables before their lifetimes begin All of those have been broken with recent loplugin:sequentialassign changes (and have been found with a new plugin to be commited). The code in SbUnoClass::Find (basic/source/classes/sbunoobj.cxx) looks suspicious, but has been effectively like that ever since at least c25ec0608a167bcf1d891043f02273761c351701 "initial import", so just marked it with a TODO comment for now. Change-Id: I0d691cb55ef317cf2b16b0490169de7ec97375cf Reviewed-on: https://gerrit.libreoffice.org/70874 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- tools/source/generic/b3dtrans.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index 1c3a420cbaf7..a896e9f1b7df 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -449,7 +449,7 @@ void B3dCamera::CalcFocalLength() double fWidth = GetDeviceRectangleWidth(); // Adjust focal length based on given position - basegfx::B3DPoint aOldPosition = WorldToEyeCoor(aOldPosition); + basegfx::B3DPoint aOldPosition = WorldToEyeCoor({}); if(fWidth != 0.0) fFocalLength = aOldPosition.getZ() / fWidth * 35.0; if(fFocalLength < 5.0) -- cgit