comparison layer/SingleColourLayer.cpp @ 1414:fa986b91d77f

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:51 +0000
parents c8a6fd3f9dff
children
comparison
equal deleted inserted replaced
1413:0930a27ebea2 1414:fa986b91d77f
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 {