mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 17:10:36 +08:00
clang-tidy modernize-use-nullptr
This commit is contained in:
@@ -127,7 +127,7 @@ int uORBTest::UnitTest::pubsublatency_main(void)
|
||||
sprintf(fname, PX4_ROOTFSDIR"/fs/microsd/timings%u.txt", timingsgroup);
|
||||
FILE *f = fopen(fname, "w");
|
||||
|
||||
if (f == NULL) {
|
||||
if (f == nullptr) {
|
||||
warnx("Error opening file!\n");
|
||||
return uORB::ERROR;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ int uORBTest::UnitTest::test_multi2()
|
||||
orb_data_fd[i] = orb_subscribe_multi(ORB_ID(orb_test_medium_multi), i);
|
||||
}
|
||||
|
||||
char *const args[1] = { NULL };
|
||||
char *const args[1] = { nullptr };
|
||||
int pubsub_task = px4_task_spawn_cmd("uorb_test_multi",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_MAX - 5,
|
||||
@@ -761,7 +761,7 @@ int uORBTest::UnitTest::test_queue_poll_notify()
|
||||
|
||||
_thread_should_exit = false;
|
||||
|
||||
char *const args[1] = { NULL };
|
||||
char *const args[1] = { nullptr };
|
||||
int pubsub_task = px4_task_spawn_cmd("uorb_test_queue",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_MIN + 5,
|
||||
|
||||
Reference in New Issue
Block a user