From 6a96df479247ec770ad2ebd5169f49b5d1b252df Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 May 2024 11:24:15 +1000 Subject: [PATCH] AP_Vehicle: use NEW_NOTHROW for new(std::nothrow) --- libraries/AP_Vehicle/AP_Vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.cpp b/libraries/AP_Vehicle/AP_Vehicle.cpp index b05851bdfe7..6b13e2b409d 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.cpp +++ b/libraries/AP_Vehicle/AP_Vehicle.cpp @@ -1083,7 +1083,7 @@ void AP_Vehicle::check_motor_noise() #if AP_DDS_ENABLED bool AP_Vehicle::init_dds_client() { - dds_client = new AP_DDS_Client(); + dds_client = NEW_NOTHROW AP_DDS_Client(); if (dds_client == nullptr) { return false; }