Mercurial > hg > svgui
diff layer/SliceLayer.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | 10e768adaee5 |
children | dbff4b290bf0 |
line wrap: on
line diff
--- a/layer/SliceLayer.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/layer/SliceLayer.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -32,7 +32,7 @@ SliceLayer::SliceLayer() : - m_sliceableModel(0), + m_sliceableModel(nullptr), m_binAlignment(BinsSpanScalePoints), m_colourMap(int(ColourMapper::Ice)), m_colourInverted(false), @@ -101,7 +101,7 @@ SVDEBUG << "SliceLayer::modelAboutToBeDeleted(" << m << ")" << endl; if (m == m_sliceableModel) { - setSliceableModel(0); + setSliceableModel(nullptr); } } @@ -1262,7 +1262,7 @@ RangeMapper * SliceLayer::getNewVerticalZoomRangeMapper() const { - if (!m_sliceableModel) return 0; + if (!m_sliceableModel) return nullptr; return new LinearRangeMapper(0, m_sliceableModel->getHeight(), 0, m_sliceableModel->getHeight(), "");