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

This commit is contained in:
Andrew Tridgell 2024-05-27 14:33:27 +10:00
parent aff9175328
commit 6233bc0e10
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public:
SPIDeviceManager() { } SPIDeviceManager() { }
AP_HAL::OwnPtr<AP_HAL::SPIDevice> get_device(const char *name) override AP_HAL::OwnPtr<AP_HAL::SPIDevice> get_device(const char *name) override
{ {
return AP_HAL::OwnPtr<AP_HAL::SPIDevice>(new SPIDevice()); return AP_HAL::OwnPtr<AP_HAL::SPIDevice>(NEW_NOTHROW SPIDevice());
} }
}; };