mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Use nullptr.
Change-Id: I469bbe4994ea22a22d2d72e47d72cab606d43eef
This commit is contained in:
@@ -38,7 +38,7 @@ WireDecoder::WireDecoder(raw_istream& is, unsigned int proto_rev)
|
||||
m_allocated = 1024;
|
||||
m_buf = (char*)std::malloc(m_allocated);
|
||||
m_proto_rev = proto_rev;
|
||||
m_error = 0;
|
||||
m_error = nullptr;
|
||||
}
|
||||
|
||||
WireDecoder::~WireDecoder()
|
||||
@@ -49,7 +49,7 @@ WireDecoder::~WireDecoder()
|
||||
bool
|
||||
WireDecoder::ReadDouble(double* val)
|
||||
{
|
||||
char *buf;
|
||||
char* buf;
|
||||
if (!Read(&buf, 8)) return false;
|
||||
*val = read_double(buf);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user