From 30228f5e6e18ac174daecb16bf4313d26a62c7cf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 May 2024 11:24:15 +1000 Subject: [PATCH] AP_Torqeedo: use NEW_NOTHROW for new(std::nothrow) --- libraries/AP_Torqeedo/AP_Torqeedo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Torqeedo/AP_Torqeedo.cpp b/libraries/AP_Torqeedo/AP_Torqeedo.cpp index 1aac8d689c..69f30972cb 100644 --- a/libraries/AP_Torqeedo/AP_Torqeedo.cpp +++ b/libraries/AP_Torqeedo/AP_Torqeedo.cpp @@ -67,7 +67,7 @@ void AP_Torqeedo::init() break; case ConnectionType::TYPE_TILLER: case ConnectionType::TYPE_MOTOR: - _backends[instance] = new AP_Torqeedo_TQBus(_params[instance], instance); + _backends[instance] = NEW_NOTHROW AP_Torqeedo_TQBus(_params[instance], instance); break; } }