comparison layer/SingleColourLayer.cpp @ 1408:c8a6fd3f9dff fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:54 +0000
parents a34a2a25907c
children
comparison
equal deleted inserted replaced
1407:05d614f6e46d 1408:c8a6fd3f9dff
33 m_defaultColourSet(false) 33 m_defaultColourSet(false)
34 { 34 {
35 // Reference current colour because setDefaulColourFor 35 // Reference current colour because setDefaulColourFor
36 // will unreference it before (possibly) changing it. 36 // will unreference it before (possibly) changing it.
37 refColor(); 37 refColor();
38 setDefaultColourFor(0); 38 setDefaultColourFor(nullptr);
39 } 39 }
40 40
41 SingleColourLayer::~SingleColourLayer() 41 SingleColourLayer::~SingleColourLayer()
42 { 42 {
43 unrefColor(); 43 unrefColor();
123 } 123 }
124 124
125 RangeMapper * 125 RangeMapper *
126 SingleColourLayer::getNewPropertyRangeMapper(const PropertyName &) const 126 SingleColourLayer::getNewPropertyRangeMapper(const PropertyName &) const
127 { 127 {
128 return 0; 128 return nullptr;
129 } 129 }
130 130
131 void 131 void
132 SingleColourLayer::setProperty(const PropertyName &name, int value) 132 SingleColourLayer::setProperty(const PropertyName &name, int value)
133 { 133 {