mirror of https://github.com/ArduPilot/ardupilot
ArduSub: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
2123458112
commit
74dc4f961c
|
@ -37,7 +37,7 @@ protected:
|
||||||
|
|
||||||
GCS_MAVLINK_Sub *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,
|
GCS_MAVLINK_Sub *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,
|
||||||
AP_HAL::UARTDriver &uart) override {
|
AP_HAL::UARTDriver &uart) override {
|
||||||
return new GCS_MAVLINK_Sub(params, uart);
|
return NEW_NOTHROW GCS_MAVLINK_Sub(params, uart);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue