mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Vehicle: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user