Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | 10e768adaee5 |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/layer/SpectrumLayer.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -33,7 +33,7 @@ SpectrumLayer::SpectrumLayer() : - m_originModel(0), + m_originModel(nullptr), m_channel(-1), m_channelSet(false), m_windowSize(4096), @@ -59,7 +59,7 @@ Model *m = const_cast<Model *> (static_cast<const Model *>(m_sliceableModel)); if (m) m->aboutToDelete(); - m_sliceableModel = 0; + m_sliceableModel = nullptr; delete m; } @@ -76,7 +76,7 @@ Model *m = const_cast<Model *> (static_cast<const Model *>(m_sliceableModel)); m->aboutToDelete(); - setSliceableModel(0); + setSliceableModel(nullptr); delete m; } @@ -108,7 +108,7 @@ Model *m = const_cast<Model *> (static_cast<const Model *>(m_sliceableModel)); m->aboutToDelete(); - setSliceableModel(0); + setSliceableModel(nullptr); delete m; }