diff --git a/Tools/Replay/MsgHandler.cpp b/Tools/Replay/MsgHandler.cpp index ebc1dd197a..b52450f558 100644 --- a/Tools/Replay/MsgHandler.cpp +++ b/Tools/Replay/MsgHandler.cpp @@ -45,7 +45,7 @@ struct MsgHandler::format_field_info *MsgHandler::find_field_info(const char *la return &field_info[i]; } } - return NULL; + return nullptr; } 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) { struct format_field_info *info = find_field_info(label); - if (info == NULL) { + if (info == nullptr) { ::printf("No info for (%s)\n",label); exit(1); }