modernize with clang-tidy

This commit is contained in:
badaix 2019-09-25 19:02:33 +02:00
parent e0d25d02ab
commit 8b231c7cc6
54 changed files with 182 additions and 196 deletions

View file

@ -262,7 +262,7 @@ bool Stream::getPlayerChunk(void* outputBuffer, const cs::usec& outputBufferDacT
if (!chunks_.try_pop(chunk_, outputBufferDacTime))
{
LOG(INFO) << "no chunks available\n";
chunk_ = NULL;
chunk_ = nullptr;
sleep_ = cs::usec(0);
return false;
}
@ -362,7 +362,7 @@ else if (miniBuffer_.full() && (cs::usec(abs(miniBuffer_.median())) > cs::msec(5
updateBuffers(age.count());
// print sync stats
time_t now = time(NULL);
time_t now = time(nullptr);
if (now != lastUpdate_)
{
lastUpdate_ = now;