Replace NULL by nullptr
This commit is contained in:
@@ -52,7 +52,7 @@ void firmwareTraceCb(const char * text)
|
||||
|
||||
OpenTxSimulator::OpenTxSimulator() :
|
||||
SimulatorInterface(),
|
||||
m_timer10ms(NULL),
|
||||
m_timer10ms(nullptr),
|
||||
m_resetOutputsData(true),
|
||||
m_stopRequested(false)
|
||||
{
|
||||
@@ -62,7 +62,7 @@ OpenTxSimulator::OpenTxSimulator() :
|
||||
|
||||
OpenTxSimulator::~OpenTxSimulator()
|
||||
{
|
||||
traceCallback = NULL;
|
||||
traceCallback = nullptr;
|
||||
tracebackDevices.clear();
|
||||
|
||||
if (m_timer10ms)
|
||||
|
||||
@@ -51,7 +51,7 @@ class DLLEXPORT OpenTxSimulator : public SimulatorInterface
|
||||
public slots:
|
||||
|
||||
virtual void init();
|
||||
virtual void start(const char * filename = NULL, bool tests = true);
|
||||
virtual void start(const char * filename = nullptr, bool tests = true);
|
||||
virtual void stop();
|
||||
virtual void setSdPath(const QString & sdPath = "", const QString & settingsPath = "");
|
||||
virtual void setVolumeGain(const int value);
|
||||
|
||||
@@ -220,8 +220,8 @@ void StopSimu()
|
||||
|
||||
simu_shutdown = true;
|
||||
|
||||
pthread_join(mixerTaskId, NULL);
|
||||
pthread_join(menusTaskId, NULL);
|
||||
pthread_join(mixerTaskId, nullptr);
|
||||
pthread_join(menusTaskId, nullptr);
|
||||
|
||||
simu_running = false;
|
||||
}
|
||||
@@ -348,7 +348,7 @@ void * audioThread(void *)
|
||||
wanted.channels = 1; /* 1 = mono, 2 = stereo */
|
||||
wanted.samples = AUDIO_BUFFER_SIZE*2; /* Good low-latency value for callback */
|
||||
wanted.callback = fillAudioBuffer;
|
||||
wanted.userdata = NULL;
|
||||
wanted.userdata = nullptr;
|
||||
|
||||
/*
|
||||
SDL_OpenAudio() internally calls SDL_InitSubSystem(SDL_INIT_AUDIO),
|
||||
@@ -390,7 +390,7 @@ void StartAudioThread(int volumeGain)
|
||||
void StopAudioThread()
|
||||
{
|
||||
simuAudio.threadRunning = false;
|
||||
pthread_join(simuAudio.threadPid, NULL);
|
||||
pthread_join(simuAudio.threadPid, nullptr);
|
||||
}
|
||||
#endif // #if defined(SIMU_AUDIO)
|
||||
|
||||
|
||||
@@ -361,7 +361,7 @@ TCHAR * f_gets (TCHAR* buff, int len, FIL* fil)
|
||||
{
|
||||
if (fil && fil->obj.fs) {
|
||||
buff = fgets(buff, len, (FILE*)fil->obj.fs);
|
||||
if (buff != NULL) {
|
||||
if (buff != nullptr) {
|
||||
fil->fptr = *buff;
|
||||
}
|
||||
// TRACE_SIMPGMSPACE("fgets(%p) %u, %s", fil->obj.fs, len, buff);
|
||||
@@ -396,7 +396,7 @@ FRESULT f_close (FIL * fil)
|
||||
TRACE_SIMPGMSPACE("f_close(%p) (FIL:%p)", fil->obj.fs, fil);
|
||||
if (fil->obj.fs) {
|
||||
fclose((FILE*)fil->obj.fs);
|
||||
fil->obj.fs = NULL;
|
||||
fil->obj.fs = nullptr;
|
||||
}
|
||||
return FR_OK;
|
||||
}
|
||||
@@ -516,7 +516,7 @@ FRESULT f_rename(const TCHAR *oldname, const TCHAR *newname)
|
||||
|
||||
FRESULT f_utime(const TCHAR* path, const FILINFO* fno)
|
||||
{
|
||||
if (fno == NULL)
|
||||
if (fno == nullptr)
|
||||
return FR_INVALID_PARAMETER;
|
||||
|
||||
std::string simpath = convertToSimuPath(path);
|
||||
|
||||
Reference in New Issue
Block a user