From d6dad2cee4307f6b190a96dd48942645060919cc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 9 Jan 2019 17:05:21 +0100 Subject: Allocate projCtx_t as a C++ object --- src/iso19111/c_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iso19111/c_api.cpp') diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 5717a76a..d13c33c7 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -74,7 +74,7 @@ static void PROJ_NO_INLINE proj_log_error(PJ_CONTEXT *ctx, const char *function, std::string msg(function); msg += ": "; msg += text; - ctx->logger(ctx->app_data, PJ_LOG_ERROR, msg.c_str()); + ctx->logger(ctx->logger_app_data, PJ_LOG_ERROR, msg.c_str()); } // --------------------------------------------------------------------------- @@ -84,7 +84,7 @@ static void PROJ_NO_INLINE proj_log_debug(PJ_CONTEXT *ctx, const char *function, std::string msg(function); msg += ": "; msg += text; - ctx->logger(ctx->app_data, PJ_LOG_DEBUG, msg.c_str()); + ctx->logger(ctx->logger_app_data, PJ_LOG_DEBUG, msg.c_str()); } // --------------------------------------------------------------------------- -- cgit v1.2.3