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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:15 +10:00
parent 30228f5e6e
commit 6a96df4792
1 changed files with 1 additions and 1 deletions

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;
}