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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:15 +10:00
parent 20a5ec4348
commit 76d16e2d78
1 changed files with 2 additions and 2 deletions

View File

@ -79,10 +79,10 @@ void AP_Winch::init()
case WinchType::NONE:
break;
case WinchType::PWM:
backend = new AP_Winch_PWM(config);
backend = NEW_NOTHROW AP_Winch_PWM(config);
break;
case WinchType::DAIWA:
backend = new AP_Winch_Daiwa(config);
backend = NEW_NOTHROW AP_Winch_Daiwa(config);
break;
default:
break;