Use nullptr.

Change-Id: I469bbe4994ea22a22d2d72e47d72cab606d43eef
This commit is contained in:
Peter Johnson
2015-06-22 23:30:32 -07:00
parent 42ad98567c
commit 0aab4c27e1
7 changed files with 19 additions and 19 deletions

View File

@@ -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;