From 60d3df673ca224107eb63e459073fc11ab5f4f16 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 6 Mar 2020 20:38:38 +0100 Subject: src/projections/: remove assignments in expression and multiple statements per line Should hopefully result in no change in results, and hopefully more readable code... --- src/projections/tcc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/projections/tcc.cpp') diff --git a/src/projections/tcc.cpp b/src/projections/tcc.cpp index 3dd47940..9413b567 100644 --- a/src/projections/tcc.cpp +++ b/src/projections/tcc.cpp @@ -12,10 +12,10 @@ PROJ_HEAD(tcc, "Transverse Central Cylindrical") "\n\tCyl, Sph, no inv"; static PJ_XY tcc_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; - double b, bt; - b = cos (lp.phi) * sin (lp.lam); - if ((bt = 1. - b * b) < EPS10) { + const double b = cos (lp.phi) * sin (lp.lam); + const double bt = 1. - b * b; + if (bt < EPS10) { proj_errno_set(P, PJD_ERR_TOLERANCE_CONDITION); return xy; } -- cgit v1.2.3