aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-17 19:16:04 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-17 19:16:04 +0100
commite1350cac43d5a9854207af3fb318a74be7fcd12f (patch)
treea8b2326828e61038a4bbb55835099b0ad55ce96e /src/init.cpp
parent8cf492acb3840eff5064a2da421c143e1fd1646c (diff)
downloadPROJ-e1350cac43d5a9854207af3fb318a74be7fcd12f.tar.gz
PROJ-e1350cac43d5a9854207af3fb318a74be7fcd12f.zip
Fix some issues raised by latest cppcheck
- coordinateoperation_internal.hpp: missing 'explicit' keyword - proj.cpp: unused 'generic' member in enumeration - init.cpp: useless assignment to a_orig and es_orig, because done again a few lines below. - crs.cpp: unused variable - datum.cpp: inefficient use of find() function - io.cpp: * missing 'static' qualifier for method * useles ternary test (left and right have same value) - aeqd.cpp: useless assignment of inv and fwd, snice done again a few lines below - isea.cpp: useless assignment of resolution and aperture since done again a few lines below, and with default values when params are absent - mod_ster.cpp: useless assignment of lp.lam, overriden in below code paths. - stere.cpp: false positive, but better not modify another variable than the iterator in a for() loop.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 13ea4ae8..1c0eddf0 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -673,8 +673,8 @@ pj_init_ctx_with_allow_init_epsg(projCtx ctx, int argc, char **argv, int allow_i
if (PJD_ERR_MAJOR_AXIS_NOT_GIVEN==proj_errno (PIN))
proj_errno_reset (PIN);
PIN->f = 1.0/298.257223563;
- PIN->a_orig = PIN->a = 6378137.0;
- PIN->es_orig = PIN->es = PIN->f*(2-PIN->f);
+ PIN->a = 6378137.0;
+ PIN->es = PIN->f*(2-PIN->f);
}
}
PIN->a_orig = PIN->a;