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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:16 +10:00
parent 2123458112
commit 74dc4f961c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ protected:
GCS_MAVLINK_Sub *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters &params,
AP_HAL::UARTDriver &uart) override {
return new GCS_MAVLINK_Sub(params, uart);
return NEW_NOTHROW GCS_MAVLINK_Sub(params, uart);
}
};