aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-19 16:31:27 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-08-19 16:31:27 +0200
commit2b3475c853b37b1485e92ef8cf78b02fb0db6142 (patch)
treed2f24a0c787de856ceb3eede89e64c5441412c01 /src/iso19111/c_api.cpp
parent846455f9585a7a44af5fb6d019fc76c5612c9d84 (diff)
downloadPROJ-2b3475c853b37b1485e92ef8cf78b02fb0db6142.tar.gz
PROJ-2b3475c853b37b1485e92ef8cf78b02fb0db6142.zip
Code reformatting
Diffstat (limited to 'src/iso19111/c_api.cpp')
-rw-r--r--src/iso19111/c_api.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp
index 6e07e54c..2e968985 100644
--- a/src/iso19111/c_api.cpp
+++ b/src/iso19111/c_api.cpp
@@ -125,12 +125,9 @@ projCppContext::toVector(const char *const *auxDbPaths) {
// ---------------------------------------------------------------------------
-projCppContext* projCppContext::clone(PJ_CONTEXT *ctx) const {
- projCppContext* newContext = new projCppContext(
- ctx,
- getDbPath().c_str(),
- getAuxDbPaths()
- );
+projCppContext *projCppContext::clone(PJ_CONTEXT *ctx) const {
+ projCppContext *newContext =
+ new projCppContext(ctx, getDbPath().c_str(), getAuxDbPaths());
newContext->setAutoCloseDb(getAutoCloseDb());
return newContext;
}
@@ -815,8 +812,8 @@ int PROJ_DLL proj_grid_get_info_from_database(
if (!db_context->lookForGridInfo(
grid_name, false, ctx->get_cpp_context()->lastGridFullName_,
ctx->get_cpp_context()->lastGridPackageName_,
- ctx->get_cpp_context()->lastGridUrl_, direct_download, open_license,
- available)) {
+ ctx->get_cpp_context()->lastGridUrl_, direct_download,
+ open_license, available)) {
ctx->safeAutoCloseDbIfNeeded();
return false;
}
@@ -824,7 +821,8 @@ int PROJ_DLL proj_grid_get_info_from_database(
if (out_full_name)
*out_full_name = ctx->get_cpp_context()->lastGridFullName_.c_str();
if (out_package_name)
- *out_package_name = ctx->get_cpp_context()->lastGridPackageName_.c_str();
+ *out_package_name =
+ ctx->get_cpp_context()->lastGridPackageName_.c_str();
if (out_url)
*out_url = ctx->get_cpp_context()->lastGridUrl_.c_str();
if (out_direct_download)