comparison data/model/Model.cpp @ 1582:70e172e6cc59 fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:41 +0000
parents d3814e07b8aa
children 1d1a16968f03 f9b6e99e0520
comparison
equal deleted inserted replaced
1581:ad5f892c0c4d 1582:70e172e6cc59
92 } 92 }
93 93
94 void 94 void
95 Model::sourceModelAboutToBeDeleted() 95 Model::sourceModelAboutToBeDeleted()
96 { 96 {
97 m_sourceModel = 0; 97 m_sourceModel = nullptr;
98 } 98 }
99 99
100 void 100 void
101 Model::setAlignment(AlignmentModel *alignment) 101 Model::setAlignment(AlignmentModel *alignment)
102 { 102 {
122 const Model * 122 const Model *
123 Model::getAlignmentReference() const 123 Model::getAlignmentReference() const
124 { 124 {
125 if (!m_alignment) { 125 if (!m_alignment) {
126 if (m_sourceModel) return m_sourceModel->getAlignmentReference(); 126 if (m_sourceModel) return m_sourceModel->getAlignmentReference();
127 return 0; 127 return nullptr;
128 } 128 }
129 return m_alignment->getReferenceModel(); 129 return m_alignment->getReferenceModel();
130 } 130 }
131 131
132 sv_frame_t 132 sv_frame_t