comparison 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
comparison
equal deleted inserted replaced
1407:05d614f6e46d 1408:c8a6fd3f9dff
39 using std::vector; 39 using std::vector;
40 40
41 41
42 WaveformLayer::WaveformLayer() : 42 WaveformLayer::WaveformLayer() :
43 SingleColourLayer(), 43 SingleColourLayer(),
44 m_model(0), 44 m_model(nullptr),
45 m_gain(1.0f), 45 m_gain(1.0f),
46 m_autoNormalize(false), 46 m_autoNormalize(false),
47 m_showMeans(true), 47 m_showMeans(true),
48 m_channelMode(SeparateChannels), 48 m_channelMode(SeparateChannels),
49 m_channel(-1), 49 m_channel(-1),
50 m_scale(LinearScale), 50 m_scale(LinearScale),
51 m_middleLineHeight(0.5), 51 m_middleLineHeight(0.5),
52 m_aggressive(false), 52 m_aggressive(false),
53 m_cache(0), 53 m_cache(nullptr),
54 m_cacheValid(false) 54 m_cacheValid(false)
55 { 55 {
56 } 56 }
57 57
58 WaveformLayer::~WaveformLayer() 58 WaveformLayer::~WaveformLayer()
216 WaveformLayer::getNewPropertyRangeMapper(const PropertyName &name) const 216 WaveformLayer::getNewPropertyRangeMapper(const PropertyName &name) const
217 { 217 {
218 if (name == "Gain") { 218 if (name == "Gain") {
219 return new LinearRangeMapper(-50, 50, -25, 25, tr("dB")); 219 return new LinearRangeMapper(-50, 50, -25, 25, tr("dB"));
220 } 220 }
221 return 0; 221 return nullptr;
222 } 222 }
223 223
224 void 224 void
225 WaveformLayer::setProperty(const PropertyName &name, int value) 225 WaveformLayer::setProperty(const PropertyName &name, int value)
226 { 226 {