mirror of https://github.com/ArduPilot/ardupilot
SRV_Channel: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
4e1b2b95d4
commit
3682e3aad3
|
@ -794,7 +794,7 @@ void SRV_Channels::set_slew_rate(SRV_Channel::Aux_servo_function_t function, flo
|
||||||
}
|
}
|
||||||
|
|
||||||
// add new item
|
// add new item
|
||||||
slew_list *new_slew = new slew_list(function);
|
slew_list *new_slew = NEW_NOTHROW slew_list(function);
|
||||||
if (new_slew == nullptr) {
|
if (new_slew == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue