comparison layer/SpectrumLayer.cpp @ 458:bd4db63b085e

* minor stuff
author Chris Cannam
date Thu, 04 Dec 2008 17:17:06 +0000
parents 035d62c4cddf
children 3b128519773c
comparison
equal deleted inserted replaced
457:e75f15c9ea11 458:bd4db63b085e
47 47
48 SpectrumLayer::~SpectrumLayer() 48 SpectrumLayer::~SpectrumLayer()
49 { 49 {
50 Model *m = const_cast<Model *> 50 Model *m = const_cast<Model *>
51 (static_cast<const Model *>(m_sliceableModel)); 51 (static_cast<const Model *>(m_sliceableModel));
52 m->aboutToDelete(); 52 if (m) m->aboutToDelete();
53 m_sliceableModel = 0; 53 m_sliceableModel = 0;
54 delete m; 54 delete m;
55 } 55 }
56 56
57 void 57 void