mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Replay: Change NULL to nullptr
This commit is contained in:
parent
36dcadf652
commit
0e72fc7bd2
@ -45,7 +45,7 @@ struct MsgHandler::format_field_info *MsgHandler::find_field_info(const char *la
|
|||||||
return &field_info[i];
|
return &field_info[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
MsgHandler::MsgHandler(const struct log_Format &_f) : next_field(0), f(_f)
|
MsgHandler::MsgHandler(const struct log_Format &_f) : next_field(0), f(_f)
|
||||||
@ -107,7 +107,7 @@ void MsgHandler::parse_format_fields()
|
|||||||
bool MsgHandler::field_value(uint8_t *msg, const char *label, char *ret, uint8_t retlen)
|
bool MsgHandler::field_value(uint8_t *msg, const char *label, char *ret, uint8_t retlen)
|
||||||
{
|
{
|
||||||
struct format_field_info *info = find_field_info(label);
|
struct format_field_info *info = find_field_info(label);
|
||||||
if (info == NULL) {
|
if (info == nullptr) {
|
||||||
::printf("No info for (%s)\n",label);
|
::printf("No info for (%s)\n",label);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user