Skip to content

Commit

Permalink
Replace NULL with nullptr in satip.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jul 15, 2020
1 parent 3b68d35 commit b3aff42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/satiprtsp.cpp
Expand Up @@ -218,7 +218,7 @@ bool SatIPRTSP::sendMessage(QUrl url, QString msg, QStringList *additionalheader
headers.append(QString("Session: %1").arg(m_sessionid));
}

if (additionalheaders != NULL)
if (additionalheaders != nullptr)
{
for (int i = 0; i < additionalheaders->count(); i++)
{
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/recorders/satipstreamhandler.cpp
Expand Up @@ -74,7 +74,7 @@ void SatIPStreamHandler::Return(SatIPStreamHandler * & ref, int inputid)

if (*rit > 1)
{
ref = NULL;
ref = nullptr;
(*rit)--;
return;
}
Expand All @@ -98,7 +98,7 @@ void SatIPStreamHandler::Return(SatIPStreamHandler * & ref, int inputid)
}

s_handlersRefCnt.erase(rit);
ref = NULL;
ref = nullptr;
}

SatIPStreamHandler::SatIPStreamHandler(const QString &device, int inputid)
Expand Down Expand Up @@ -296,7 +296,7 @@ bool SatIPStreamHandler::Open(void)
QString deviceId = QString("uuid:%1").arg(devinfo.at(1));

QString ip = SatIP::findDeviceIP(deviceId);
if (ip != NULL)
if (ip != nullptr)
{
LOG(VB_RECORD, LOG_INFO, LOC + QString("Discovered device %1 at %2").arg(deviceId).arg(ip));
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/satiputils.cpp
Expand Up @@ -117,7 +117,7 @@ QStringList SatIP::doUPNPsearch(void)
}

satipservers->DecrRef();
satipservers = NULL;
satipservers = nullptr;

return result;
};
Expand Down

0 comments on commit b3aff42

Please sign in to comment.