From 1988165f927780b0112cbf8600a94e041e1ef89e Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Thu, 1 Aug 2024 10:27:00 -0700 Subject: [PATCH] ais1_2_3.cpp: Do not have a `using` for just one std::abs. --- src/libais/ais1_2_3.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libais/ais1_2_3.cpp b/src/libais/ais1_2_3.cpp index e39e4009..3478591c 100644 --- a/src/libais/ais1_2_3.cpp +++ b/src/libais/ais1_2_3.cpp @@ -4,8 +4,6 @@ #include "ais.h" -using std::abs; - namespace libais { Ais1_2_3::Ais1_2_3(const char *nmea_payload, const size_t pad) @@ -35,7 +33,7 @@ Ais1_2_3::Ais1_2_3(const char *nmea_payload, const size_t pad) nav_status = bits.ToUnsignedInt(38, 4); rot_raw = bits.ToInt(42, 8); - rot_over_range = abs(rot_raw) > 126 ? true : false; + rot_over_range = std::abs(rot_raw) > 126 ? true : false; rot = pow((rot_raw/4.733), 2); if (rot_raw < 0) rot = -rot;