From 8211f48b1ac6c941f46a8f2df90bdbfdcbc85981 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 18 Dec 2018 21:31:28 +0100 Subject: cpp conversion: fix zero-as-null-pointer-constant warnings --- src/PJ_labrd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PJ_labrd.cpp') diff --git a/src/PJ_labrd.cpp b/src/PJ_labrd.cpp index c72aeb93..d3930243 100644 --- a/src/PJ_labrd.cpp +++ b/src/PJ_labrd.cpp @@ -103,7 +103,7 @@ static LP e_inverse (XY xy, PJ *P) { /* Ellipsoidal, inverse */ PJ *PROJECTION(labrd) { double Az, sinp, R, N, t; struct pj_opaque *Q = static_cast(pj_calloc (1, sizeof (struct pj_opaque))); - if (0==Q) + if (nullptr==Q) return pj_default_destructor (P, ENOMEM); P->opaque = Q; -- cgit v1.2.3