aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_unitconvert.c
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2017-09-13 13:27:14 +0200
committerKristian Evers <kristianevers@gmail.com>2017-09-13 13:27:14 +0200
commit6b07474e9427d53134e77f0bdf3ced7812d080c4 (patch)
tree1f392d6e0556fd4060d03c83bbed961ef32e7e93 /src/PJ_unitconvert.c
parente2faff822f2161d1a45b515d71edde54a19c48cb (diff)
downloadPROJ-6b07474e9427d53134e77f0bdf3ced7812d080c4.tar.gz
PROJ-6b07474e9427d53134e77f0bdf3ced7812d080c4.zip
Introduce PJ_DEFAULT_CTX constant that improves code readability
Diffstat (limited to 'src/PJ_unitconvert.c')
-rw-r--r--src/PJ_unitconvert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_unitconvert.c b/src/PJ_unitconvert.c
index 06723399..7ce6035c 100644
--- a/src/PJ_unitconvert.c
+++ b/src/PJ_unitconvert.c
@@ -412,7 +412,7 @@ int pj_unitconvert_selftest (void) {return 0;}
static int test_time(char* args, double tol, double t_in, double t_exp) {
PJ_OBS in, out;
- PJ *P = proj_create(0, args);
+ PJ *P = proj_create(PJ_DEFAULT_CTX, args);
int ret = 0;
if (P == 0)
@@ -438,7 +438,7 @@ static int test_time(char* args, double tol, double t_in, double t_exp) {
static int test_xyz(char* args, double tol, PJ_TRIPLET in, PJ_TRIPLET exp) {
PJ_OBS out, obs_in;
- PJ *P = proj_create(0, args);
+ PJ *P = proj_create(PJ_DEFAULT_CTX, args);
int ret = 0;
if (P == 0)