mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_EFI: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
ed8926361f
commit
b07e0bf06b
@ -98,42 +98,42 @@ void AP_EFI::init(void)
|
|||||||
break;
|
break;
|
||||||
#if AP_EFI_SERIAL_MS_ENABLED
|
#if AP_EFI_SERIAL_MS_ENABLED
|
||||||
case Type::MegaSquirt:
|
case Type::MegaSquirt:
|
||||||
backend = new AP_EFI_Serial_MS(*this);
|
backend = NEW_NOTHROW AP_EFI_Serial_MS(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_SERIAL_LUTAN_ENABLED
|
#if AP_EFI_SERIAL_LUTAN_ENABLED
|
||||||
case Type::Lutan:
|
case Type::Lutan:
|
||||||
backend = new AP_EFI_Serial_Lutan(*this);
|
backend = NEW_NOTHROW AP_EFI_Serial_Lutan(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_NWPWU_ENABLED
|
#if AP_EFI_NWPWU_ENABLED
|
||||||
case Type::NWPMU:
|
case Type::NWPMU:
|
||||||
backend = new AP_EFI_NWPMU(*this);
|
backend = NEW_NOTHROW AP_EFI_NWPMU(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_DRONECAN_ENABLED
|
#if AP_EFI_DRONECAN_ENABLED
|
||||||
case Type::DroneCAN:
|
case Type::DroneCAN:
|
||||||
backend = new AP_EFI_DroneCAN(*this);
|
backend = NEW_NOTHROW AP_EFI_DroneCAN(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_CURRAWONG_ECU_ENABLED
|
#if AP_EFI_CURRAWONG_ECU_ENABLED
|
||||||
case Type::CurrawongECU:
|
case Type::CurrawongECU:
|
||||||
backend = new AP_EFI_Currawong_ECU(*this);
|
backend = NEW_NOTHROW AP_EFI_Currawong_ECU(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_SCRIPTING_ENABLED
|
#if AP_EFI_SCRIPTING_ENABLED
|
||||||
case Type::SCRIPTING:
|
case Type::SCRIPTING:
|
||||||
backend = new AP_EFI_Scripting(*this);
|
backend = NEW_NOTHROW AP_EFI_Scripting(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_SERIAL_HIRTH_ENABLED
|
#if AP_EFI_SERIAL_HIRTH_ENABLED
|
||||||
case Type::Hirth:
|
case Type::Hirth:
|
||||||
backend = new AP_EFI_Serial_Hirth(*this);
|
backend = NEW_NOTHROW AP_EFI_Serial_Hirth(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if AP_EFI_MAV_ENABLED
|
#if AP_EFI_MAV_ENABLED
|
||||||
case Type::MAV:
|
case Type::MAV:
|
||||||
backend = new AP_EFI_MAV(*this);
|
backend = NEW_NOTHROW AP_EFI_MAV(*this);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user