Use nullptr instead of NULL or 0.

pull/19/head
Dave Page 2018-12-06 10:24:52 +00:00
parent 45cd17af84
commit 566ff7b609
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ void TrayIcon::createTrayIcon()
if (m_trayIconMenu)
{
delete m_trayIconMenu;
m_trayIconMenu = NULL;
m_trayIconMenu = nullptr;
}
m_trayIconMenu = new QMenu(this);
@ -95,7 +95,7 @@ void TrayIcon::createActions()
void TrayIcon::enableShutdownMenu()
{
if (m_quitAction != NULL)
if (m_quitAction != nullptr)
{
m_quitAction->setEnabled(true);
}