From 6233bc0e103c45061d1cfc452601054f6e9c4d88 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 May 2024 14:33:27 +1000 Subject: [PATCH] HAL_Empty: use NEW_NOTHROW for new(std::nothrow) --- libraries/AP_HAL_Empty/SPIDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Empty/SPIDevice.h b/libraries/AP_HAL_Empty/SPIDevice.h index be25c2873c..62849e7de2 100644 --- a/libraries/AP_HAL_Empty/SPIDevice.h +++ b/libraries/AP_HAL_Empty/SPIDevice.h @@ -77,7 +77,7 @@ public: SPIDeviceManager() { } AP_HAL::OwnPtr get_device(const char *name) override { - return AP_HAL::OwnPtr(new SPIDevice()); + return AP_HAL::OwnPtr(NEW_NOTHROW SPIDevice()); } };