comparison data/model/Model.cpp @ 687:06f13a3b9e9e debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:09 +0100
parents b4a8d8221eaf
children 1424aa29ae95
comparison
equal deleted inserted replaced
686:b4a8d8221eaf 687:06f13a3b9e9e
22 22
23 const int Model::COMPLETION_UNKNOWN = -1; 23 const int Model::COMPLETION_UNKNOWN = -1;
24 24
25 Model::~Model() 25 Model::~Model()
26 { 26 {
27 // std::cerr << "Model::~Model(" << this << ")" << std::endl; 27 // DEBUG << "Model::~Model(" << this << ")" << endl;
28 28
29 if (!m_aboutToDelete) { 29 if (!m_aboutToDelete) {
30 std::cerr << "NOTE: Model::~Model(" << this << ", \"" 30 DEBUG << "NOTE: Model::~Model(" << this << ", \""
31 << objectName() << "\"): Model deleted " 31 << objectName() << "\"): Model deleted "
32 << "with no aboutToDelete notification" << std::endl; 32 << "with no aboutToDelete notification" << endl;
33 } 33 }
34 34
35 if (m_alignment) { 35 if (m_alignment) {
36 m_alignment->aboutToDelete(); 36 m_alignment->aboutToDelete();
37 delete m_alignment; 37 delete m_alignment;
132 } 132 }
133 133
134 int 134 int
135 Model::getAlignmentCompletion() const 135 Model::getAlignmentCompletion() const
136 { 136 {
137 // std::cerr << "Model::getAlignmentCompletion" << std::endl; 137 // DEBUG << "Model::getAlignmentCompletion" << endl;
138 if (!m_alignment) { 138 if (!m_alignment) {
139 if (m_sourceModel) return m_sourceModel->getAlignmentCompletion(); 139 if (m_sourceModel) return m_sourceModel->getAlignmentCompletion();
140 else return 100; 140 else return 100;
141 } 141 }
142 int completion = 0; 142 int completion = 0;