comparison layer/SliceLayer.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 3bf74851d93e
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
71 } 71 }
72 72
73 void 73 void
74 SliceLayer::sliceableModelReplaced(const Model *orig, const Model *replacement) 74 SliceLayer::sliceableModelReplaced(const Model *orig, const Model *replacement)
75 { 75 {
76 std::cerr << "SliceLayer::sliceableModelReplaced(" << orig << ", " << replacement << ")" << std::endl; 76 DEBUG << "SliceLayer::sliceableModelReplaced(" << orig << ", " << replacement << ")" << endl;
77 77
78 if (orig == m_sliceableModel) { 78 if (orig == m_sliceableModel) {
79 setSliceableModel 79 setSliceableModel
80 (dynamic_cast<const DenseThreeDimensionalModel *>(replacement)); 80 (dynamic_cast<const DenseThreeDimensionalModel *>(replacement));
81 } 81 }
82 } 82 }
83 83
84 void 84 void
85 SliceLayer::modelAboutToBeDeleted(Model *m) 85 SliceLayer::modelAboutToBeDeleted(Model *m)
86 { 86 {
87 std::cerr << "SliceLayer::modelAboutToBeDeleted(" << m << ")" << std::endl; 87 DEBUG << "SliceLayer::modelAboutToBeDeleted(" << m << ")" << endl;
88 88
89 if (m == m_sliceableModel) { 89 if (m == m_sliceableModel) {
90 setSliceableModel(0); 90 setSliceableModel(0);
91 } 91 }
92 } 92 }