diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-06-24 17:06:12 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-06-24 17:06:12 +0200 |
| commit | f40ab9fd0b31f5c2bca42c50189764b387f520d6 (patch) | |
| tree | 07d4d7042dbd13c3513bcc8ae5f3cbc68f367922 /src | |
| parent | b8c2a2dba15c04ef18637a88f95fb4c3e95ff163 (diff) | |
| download | PROJ-f40ab9fd0b31f5c2bca42c50189764b387f520d6.tar.gz PROJ-f40ab9fd0b31f5c2bca42c50189764b387f520d6.zip | |
c_api.cpp: code reformating
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/c_api.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 6550ef3c..79147ae8 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -1016,10 +1016,8 @@ PJ_OBJ_LIST *proj_create_from_name(PJ_CONTEXT *ctx, const char *auth_name, size_t limitResultCount, const char *const *options) { SANITIZE_CTX(ctx); - if (!searchedName || - (types != nullptr && typesCount <= 0) || - (types == nullptr && typesCount > 0) - ) { + if (!searchedName || (types != nullptr && typesCount <= 0) || + (types == nullptr && typesCount > 0)) { proj_log_error(ctx, __FUNCTION__, "invalid input"); return nullptr; } @@ -1202,7 +1200,7 @@ static int proj_is_equivalent_to_internal(PJ_CONTEXT *ctx, const PJ *obj, const PJ *other, PJ_COMPARISON_CRITERION criterion) { - if (!obj || !other){ + if (!obj || !other) { if (ctx) { proj_log_error(ctx, __FUNCTION__, "missing required input"); } |
