mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Convert to C++ nullptr from NULL.
This commit is contained in:
@@ -61,7 +61,7 @@ bool CNXDNIcomNetwork::open()
|
||||
|
||||
bool CNXDNIcomNetwork::write(const unsigned char* data, NXDN_NETWORK_MESSAGE_TYPE type)
|
||||
{
|
||||
assert(data != NULL);
|
||||
assert(data != nullptr);
|
||||
|
||||
unsigned char buffer[110U];
|
||||
::memset(buffer, 0x00U, 110U);
|
||||
@@ -139,7 +139,7 @@ void CNXDNIcomNetwork::clock(unsigned int ms)
|
||||
|
||||
bool CNXDNIcomNetwork::read(unsigned char* data)
|
||||
{
|
||||
assert(data != NULL);
|
||||
assert(data != nullptr);
|
||||
|
||||
if (m_buffer.isEmpty())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user