Mercurial > hg > svgui
diff layer/WaveformLayer.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | 4c359c2b220c |
children | e866102db32a |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/layer/WaveformLayer.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -41,7 +41,7 @@ WaveformLayer::WaveformLayer() : SingleColourLayer(), - m_model(0), + m_model(nullptr), m_gain(1.0f), m_autoNormalize(false), m_showMeans(true), @@ -50,7 +50,7 @@ m_scale(LinearScale), m_middleLineHeight(0.5), m_aggressive(false), - m_cache(0), + m_cache(nullptr), m_cacheValid(false) { } @@ -218,7 +218,7 @@ if (name == "Gain") { return new LinearRangeMapper(-50, 50, -25, 25, tr("dB")); } - return 0; + return nullptr; } void