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: case WinchType::NONE:
break; break;
case WinchType::PWM: case WinchType::PWM:
backend = new AP_Winch_PWM(config); backend = NEW_NOTHROW AP_Winch_PWM(config);
break; break;
case WinchType::DAIWA: case WinchType::DAIWA:
backend = new AP_Winch_Daiwa(config); backend = NEW_NOTHROW AP_Winch_Daiwa(config);
break; break;
default: default:
break; break;