AP_Vehicle: use NEW_NOTHROW for new(std::nothrow)

This commit is contained in:
Andrew Tridgell
2024-06-04 09:20:21 +10:00
parent 30228f5e6e
commit 6a96df4792
+1 -1
View File
@@ -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;
}