From 62e3c6e5a43aa32510f40bd090a7d901fe3a2433 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 May 2024 11:24:11 +1000 Subject: [PATCH] AP_Gripper: use NEW_NOTHROW for new(std::nothrow) --- libraries/AP_Gripper/AP_Gripper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Gripper/AP_Gripper.cpp b/libraries/AP_Gripper/AP_Gripper.cpp index 1fbd9e197a..6c069e603e 100644 --- a/libraries/AP_Gripper/AP_Gripper.cpp +++ b/libraries/AP_Gripper/AP_Gripper.cpp @@ -113,12 +113,12 @@ void AP_Gripper::init() break; #if AP_GRIPPER_SERVO_ENABLED case 1: - backend = new AP_Gripper_Servo(config); + backend = NEW_NOTHROW AP_Gripper_Servo(config); break; #endif #if AP_GRIPPER_EPM_ENABLED case 2: - backend = new AP_Gripper_EPM(config); + backend = NEW_NOTHROW AP_Gripper_EPM(config); break; #endif default: