binpac: Apply clang-tidy's modernize-use-nullptr check

This commit is contained in:
Tim Wojtulewicz 2023-01-27 08:03:08 -07:00
parent 49a96f5216
commit 9f3750d0cc
29 changed files with 183 additions and 181 deletions

View file

@ -30,10 +30,10 @@ binpac::FlowBuffer::Policy binpac::FlowBuffer::policy = {
FlowBuffer::FlowBuffer(LineBreakStyle linebreak_style)
{
buffer_length_ = 0;
buffer_ = 0;
buffer_ = nullptr;
orig_data_begin_ = 0;
orig_data_end_ = 0;
orig_data_begin_ = nullptr;
orig_data_end_ = nullptr;
linebreak_style_ = linebreak_style;
linebreak_style_default = linebreak_style;
@ -209,7 +209,7 @@ void FlowBuffer::DiscardData()
mode_ = UNKNOWN_MODE;
message_complete_ = false;
have_pending_request_ = false;
orig_data_begin_ = orig_data_end_ = 0;
orig_data_begin_ = orig_data_end_ = nullptr;
buffer_n_ = 0;
frame_length_ = 0;
@ -289,7 +289,7 @@ void FlowBuffer::NewGap(int length)
frame_length_ = 0;
}
orig_data_begin_ = orig_data_end_ = 0;
orig_data_begin_ = orig_data_end_ = nullptr;
MarkOrCopy();
}