clang-tidy modernize-use-nullptr

This commit is contained in:
Daniel Agar
2017-01-28 20:21:58 -05:00
parent ec2467d4a5
commit e927f3e040
48 changed files with 155 additions and 153 deletions
@@ -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,