mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Convert to C++ nullptr from NULL.
This commit is contained in:
parent
43f8b2f6f0
commit
cf15f42a0f
98 changed files with 1340 additions and 1340 deletions
20
P25NID.cpp
20
P25NID.cpp
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2016,2018 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2016,2018,2025 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2018 by Bryan Biedenkapp <gatekeep@gmail.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -29,13 +29,13 @@ const unsigned int MAX_NID_ERRS = 5U;
|
|||
|
||||
CP25NID::CP25NID(unsigned int nac) :
|
||||
m_duid(0U),
|
||||
m_hdr(NULL),
|
||||
m_ldu1(NULL),
|
||||
m_ldu2(NULL),
|
||||
m_termlc(NULL),
|
||||
m_term(NULL),
|
||||
m_tsdu(NULL),
|
||||
m_pdu(NULL)
|
||||
m_hdr(nullptr),
|
||||
m_ldu1(nullptr),
|
||||
m_ldu2(nullptr),
|
||||
m_termlc(nullptr),
|
||||
m_term(nullptr),
|
||||
m_tsdu(nullptr),
|
||||
m_pdu(nullptr)
|
||||
{
|
||||
CBCH bch;
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ CP25NID::~CP25NID()
|
|||
|
||||
bool CP25NID::decode(const unsigned char* data)
|
||||
{
|
||||
assert(data != NULL);
|
||||
assert(data != nullptr);
|
||||
|
||||
unsigned char nid[P25_NID_LENGTH_BYTES];
|
||||
CP25Utils::decode(data, nid, 48U, 114U);
|
||||
|
|
@ -154,7 +154,7 @@ bool CP25NID::decode(const unsigned char* data)
|
|||
|
||||
void CP25NID::encode(unsigned char* data, unsigned char duid) const
|
||||
{
|
||||
assert(data != NULL);
|
||||
assert(data != nullptr);
|
||||
|
||||
switch (duid) {
|
||||
case P25_DUID_HEADER:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue