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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:16 +10:00
parent 4e1b2b95d4
commit 3682e3aad3
1 changed files with 1 additions and 1 deletions

View File

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