From f40ab9fd0b31f5c2bca42c50189764b387f520d6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 24 Jun 2020 17:06:12 +0200 Subject: c_api.cpp: code reformating --- src/iso19111/c_api.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/iso19111/c_api.cpp') 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"); } -- cgit v1.2.3