src: use nullptr instead of NULL

This commit is contained in:
mlangkabel
2018-02-23 19:11:35 +01:00
parent 0df32f239e
commit ca20cb7bc9
17 changed files with 44 additions and 44 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ void QtTcpWrapper::stopListening()
QtTcpWrapper::~QtTcpWrapper()
{
if (m_tcpServer != NULL)
if (m_tcpServer != nullptr)
{
if (m_tcpServer->isListening())
{
@@ -111,7 +111,7 @@ void QtTcpWrapper::startRead()
QString message = QString::fromUtf8(byteArray);
if (m_readCallback != NULL)
if (m_readCallback != nullptr)
{
m_readCallback(message.toStdWString());
}
@@ -121,7 +121,7 @@ void QtTcpWrapper::startRead()
m_tcpClient->close();
if (m_readCallback != NULL)
if (m_readCallback != nullptr)
{
m_readCallback(buffer);
}*/