From 505d0768f8392e3c4775425dd97f41e1c829ef44 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 30 Apr 2016 18:23:42 +0100 Subject: Apply clang-tidy: modernize-use-nullptr --- src/modules/toolbareditor/CustomizeToolBarsDialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/toolbareditor/CustomizeToolBarsDialog.cpp') diff --git a/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp b/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp index 0e9a7b93b..be1baf36e 100644 --- a/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp +++ b/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp @@ -55,7 +55,7 @@ #include #include -CustomizeToolBarsDialog * CustomizeToolBarsDialog::m_pInstance = 0; +CustomizeToolBarsDialog * CustomizeToolBarsDialog::m_pInstance = nullptr; extern QRect g_rectToolBarEditorDialogGeometry; TrashcanLabel::TrashcanLabel(QWidget * p) @@ -68,7 +68,7 @@ TrashcanLabel::TrashcanLabel(QWidget * p) setAlignment(Qt::AlignCenter); setMinimumSize(40, 40); m_uFlashCount = 0; - m_pFlashTimer = 0; + m_pFlashTimer = nullptr; m_clrOriginal = palette().color(backgroundRole()); setAutoFillBackground(true); //needed for flashing connect(KviActionManager::instance(), SIGNAL(removeActionsHintRequest()), this, SLOT(flash())); @@ -113,7 +113,7 @@ void TrashcanLabel::heartbeat() { m_pFlashTimer->stop(); delete m_pFlashTimer; - m_pFlashTimer = 0; + m_pFlashTimer = nullptr; } } @@ -363,7 +363,7 @@ CustomizeToolBarsDialog::~CustomizeToolBarsDialog() g_rectToolBarEditorDialogGeometry = QRect(pos().x(), pos().y(), size().width(), size().height()); KviActionManager::instance()->customizeToolBarsDialogDestroyed(); - m_pInstance = 0; + m_pInstance = nullptr; } void CustomizeToolBarsDialog::currentToolBarChanged() @@ -543,7 +543,7 @@ void CustomizeToolBarsDialog::cleanup() if(!m_pInstance) return; delete m_pInstance; - m_pInstance = 0; + m_pInstance = nullptr; } void CustomizeToolBarsDialog::display(bool bTopLevel) @@ -554,7 +554,7 @@ void CustomizeToolBarsDialog::display(bool bTopLevel) { if(m_pInstance->parent()) { - m_pInstance->setParent(0); + m_pInstance->setParent(nullptr); } } else @@ -569,7 +569,7 @@ void CustomizeToolBarsDialog::display(bool bTopLevel) { if(bTopLevel) { - m_pInstance = new CustomizeToolBarsDialog(0); + m_pInstance = new CustomizeToolBarsDialog(nullptr); } else { -- cgit v1.3.1-10-gc9f91