Mercurial > hg > svgui
diff widgets/PropertyBox.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | 78eecb19e688 |
children | 232262e38051 |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/widgets/PropertyBox.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -57,8 +57,8 @@ PropertyBox::PropertyBox(PropertyContainer *container) : m_container(container), - m_showButton(0), - m_playButton(0) + m_showButton(nullptr), + m_playButton(nullptr) { #ifdef DEBUG_PROPERTY_BOX cerr << "PropertyBox[" << this << "(\"" << @@ -82,7 +82,7 @@ m_mainBox->addWidget(m_mainWidget); m_mainBox->insertStretch(2, 10); - m_viewPlayFrame = 0; + m_viewPlayFrame = nullptr; populateViewPlayFrame(); m_layout = new QGridLayout; @@ -129,7 +129,7 @@ if (m_viewPlayFrame) { delete m_viewPlayFrame; - m_viewPlayFrame = 0; + m_viewPlayFrame = nullptr; } if (!m_container) return; @@ -644,7 +644,7 @@ PropertyContainer::PropertyType type = m_container->getPropertyType(name); - Command *c = 0; + Command *c = nullptr; if (type == PropertyContainer::UnitsProperty) {