mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
30228f5e6e
commit
6a96df4792
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue