From 507f48a147e0158e0123b34528ead2ed9ca69fa9 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 25 Feb 2017 15:27:00 -0500 Subject: [PATCH] geo NULL to nullptr (#242) --- EKF/geo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EKF/geo.cpp b/EKF/geo.cpp index a1fa93ab1b..1576e1f7ee 100644 --- a/EKF/geo.cpp +++ b/EKF/geo.cpp @@ -339,11 +339,11 @@ int map_projection_global_getref(double *lat_0, double *lon_0) return -1; } - if (lat_0 != NULL) { + if (lat_0 != nullptr) { *lat_0 = M_RAD_TO_DEG * mp_ref.lat_rad; } - if (lon_0 != NULL) { + if (lon_0 != nullptr) { *lon_0 = M_RAD_TO_DEG * mp_ref.lon_rad; } @@ -403,7 +403,7 @@ int globallocalconverter_getref(double *lat_0, double *lon_0, float *alt_0) return -1; } - if (alt_0 != NULL) { + if (alt_0 != nullptr) { *alt_0 = gl_ref.alt; }