aboutsummaryrefslogtreecommitdiff
path: root/src/proj.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-04 14:01:13 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-09-04 15:17:51 +0200
commitd7d8f4500b6ee3f5dfdaa6662a36b93106419436 (patch)
tree5ff25895d0de0982fcdd94cb2ca476eceb5f9e2a /src/proj.h
parentb52285e9155228fb46fe9e792d21e600daa4c132 (diff)
downloadPROJ-d7d8f4500b6ee3f5dfdaa6662a36b93106419436.tar.gz
PROJ-d7d8f4500b6ee3f5dfdaa6662a36b93106419436.zip
proj_create_crs_to_crs_from_pj(): make the PJ* arguments const PJ*
This will make the life of C++ users using the C API slightly easier. There's no ABI or API backward compatibility issue in doing that change as constness of arguments is not retained in the C ABI, and any non-const object passed as argument is implicitly converted as a const object if that is what is mentionned in the argument list.
Diffstat (limited to 'src/proj.h')
-rw-r--r--src/proj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proj.h b/src/proj.h
index 22b4c021..1f30f5a1 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -358,8 +358,8 @@ PJ PROJ_DLL *proj_create (PJ_CONTEXT *ctx, const char *definition);
PJ PROJ_DLL *proj_create_argv (PJ_CONTEXT *ctx, int argc, char **argv);
PJ PROJ_DLL *proj_create_crs_to_crs(PJ_CONTEXT *ctx, const char *source_crs, const char *target_crs, PJ_AREA *area);
PJ PROJ_DLL *proj_create_crs_to_crs_from_pj(PJ_CONTEXT *ctx,
- PJ *source_crs,
- PJ *target_crs,
+ const PJ *source_crs,
+ const PJ *target_crs,
PJ_AREA *area,
const char* const *options);
PJ PROJ_DLL *proj_normalize_for_visualization(PJ_CONTEXT *ctx, const PJ* obj);