From 8198bb580a5640415e09b8fd3533ffaa11317ca6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 18 Dec 2018 22:02:44 +0100 Subject: cpp conversion: fix remaining warnings --- src/PJ_unitconvert.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PJ_unitconvert.cpp') diff --git a/src/PJ_unitconvert.cpp b/src/PJ_unitconvert.cpp index f7545680..b25fd5d2 100644 --- a/src/PJ_unitconvert.cpp +++ b/src/PJ_unitconvert.cpp @@ -80,10 +80,10 @@ typedef double (*tconvert)(double); namespace { // anonymous namespace struct TIME_UNITS { - char *id; /* units keyword */ + const char *id; /* units keyword */ tconvert t_in; /* unit -> mod. julian date function pointer */ tconvert t_out; /* mod. julian date > unit function pointer */ - char *name; /* comments */ + const char *name; /* comments */ }; } // anonymous namespace @@ -436,7 +436,7 @@ static double get_unit_conversion_factor(const char* name, PJ *CONVERSION(unitconvert,0) { /***********************************************************************/ struct pj_opaque_unitconvert *Q = static_cast(pj_calloc (1, sizeof (struct pj_opaque_unitconvert))); - char *s, *name; + const char *s, *name; int i; double f; int xy_in_is_linear = -1; /* unknown */ -- cgit v1.2.3