Patch level : 12.0 nopatch
Files correlati : Commento : aggiornate costanti NULL in nullptr
This commit is contained in:
parent
162c24c545
commit
771f13d5f0
@ -22,24 +22,19 @@
|
||||
// Current dongle
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
static TDongle* _dongle = NULL;
|
||||
static TDongle* _dongle = nullptr;
|
||||
|
||||
TDongle& dongle()
|
||||
{
|
||||
if (_dongle == NULL)
|
||||
if (_dongle == nullptr)
|
||||
_dongle = new TDongle;
|
||||
return *_dongle;
|
||||
}
|
||||
|
||||
bool destroy_dongle()
|
||||
{
|
||||
bool ok = _dongle != NULL;
|
||||
if (ok)
|
||||
{
|
||||
delete _dongle;
|
||||
_dongle = NULL;
|
||||
}
|
||||
return ok;
|
||||
safe_delete(_dongle);
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -137,9 +132,10 @@ bool TDongle::ssa_login(const char* mod)
|
||||
_module.reset(); // Disattiva tutti i moduli ...
|
||||
_module.set(long(BAAUT)); // ... tranne la base
|
||||
|
||||
const int err = xvt_dongle_sa_login(NULL);
|
||||
const int err = xvt_dongle_sa_login(nullptr);
|
||||
_serno = (err >= 0) ? err : 0xFFFF;
|
||||
if (_serno == 0xFFFF && is_power_station())
|
||||
if (//_serno == 0xFFFF &&
|
||||
is_power_station())
|
||||
_serno = 0;
|
||||
if (_serno != 0xFFFF)
|
||||
{
|
||||
|
@ -750,8 +750,7 @@ static bool is_sirio_station(const char* hostname)
|
||||
"NBKPEREGOW10", // Stefano
|
||||
"NBKPEREGOW8", // Stefano
|
||||
"NBCALDERONIW10", // Simone
|
||||
|
||||
NULL
|
||||
nullptr
|
||||
};
|
||||
for (int i = 0; ranger[i]; i++)
|
||||
if (xvt_str_same(hostname, ranger[i]))
|
||||
|
@ -174,16 +174,16 @@ TSSA_Pinger::TSSA_Pinger()
|
||||
|
||||
int xvt_dongle_sa_login(const char* module)
|
||||
{
|
||||
if (_ssa_timer == NULL)
|
||||
if (_ssa_timer == nullptr)
|
||||
_ssa_timer = new TSSA_Pinger;
|
||||
return _ssa_timer->Login(module);
|
||||
}
|
||||
|
||||
int xvt_dongle_sa_crypt(unsigned short* data)
|
||||
{
|
||||
if (_ssa_timer == NULL)
|
||||
if (_ssa_timer == nullptr)
|
||||
return SSA_UTENTE_NON_LOGGATO;
|
||||
if (data == NULL)
|
||||
if (data == nullptr)
|
||||
return -EACCES;
|
||||
|
||||
data[0] ^= 0xDEAD;
|
||||
|
Loading…
x
Reference in New Issue
Block a user