mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 14:53:34 +08:00
clang-tidy modernize-use-nullptr
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include "battery.h"
|
||||
|
||||
Battery::Battery() :
|
||||
SuperBlock(NULL, "BAT"),
|
||||
SuperBlock(nullptr, "BAT"),
|
||||
_param_v_empty(this, "V_EMPTY"),
|
||||
_param_v_full(this, "V_CHARGED"),
|
||||
_param_n_cells(this, "N_CELLS"),
|
||||
|
||||
@@ -414,7 +414,7 @@ MultirotorMixer::mix(float *outputs, unsigned space, uint16_t *status_reg)
|
||||
_delta_out_max = 0.0f;
|
||||
|
||||
// Notify saturation status
|
||||
if (status_reg != NULL) {
|
||||
if (status_reg != nullptr) {
|
||||
(*status_reg) = _saturation_status.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user