mirror of https://github.com/ArduPilot/ardupilot
AP_Torqeedo: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
65822c01ed
commit
30228f5e6e
|
@ -67,7 +67,7 @@ void AP_Torqeedo::init()
|
||||||
break;
|
break;
|
||||||
case ConnectionType::TYPE_TILLER:
|
case ConnectionType::TYPE_TILLER:
|
||||||
case ConnectionType::TYPE_MOTOR:
|
case ConnectionType::TYPE_MOTOR:
|
||||||
_backends[instance] = new AP_Torqeedo_TQBus(_params[instance], instance);
|
_backends[instance] = NEW_NOTHROW AP_Torqeedo_TQBus(_params[instance], instance);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue