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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:16 +10:00
parent 91ff1bc028
commit 5113b6af59
1 changed files with 1 additions and 1 deletions

View File

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