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

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 1fe7951a61e8
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
40 { 40 {
41 } 41 }
42 42
43 Layer::~Layer() 43 Layer::~Layer()
44 { 44 {
45 // std::cerr << "Layer::~Layer(" << this << ")" << std::endl; 45 // DEBUG << "Layer::~Layer(" << this << ")" << endl;
46 } 46 }
47 47
48 void 48 void
49 Layer::connectSignals(const Model *model) 49 Layer::connectSignals(const Model *model)
50 { 50 {
167 167
168 size_t 168 size_t
169 Layer::alignToReference(View *v, size_t frame) const 169 Layer::alignToReference(View *v, size_t frame) const
170 { 170 {
171 const Model *m = getModel(); 171 const Model *m = getModel();
172 std::cerr << "Layer::alignToReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << std::endl; 172 DEBUG << "Layer::alignToReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl;
173 if (m && m->getAlignmentReference()) { 173 if (m && m->getAlignmentReference()) {
174 return m->alignToReference(frame); 174 return m->alignToReference(frame);
175 } else { 175 } else {
176 return v->alignToReference(frame); 176 return v->alignToReference(frame);
177 } 177 }
179 179
180 size_t 180 size_t
181 Layer::alignFromReference(View *v, size_t frame) const 181 Layer::alignFromReference(View *v, size_t frame) const
182 { 182 {
183 const Model *m = getModel(); 183 const Model *m = getModel();
184 std::cerr << "Layer::alignFromReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << std::endl; 184 DEBUG << "Layer::alignFromReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl;
185 if (m && m->getAlignmentReference()) { 185 if (m && m->getAlignmentReference()) {
186 return m->alignFromReference(frame); 186 return m->alignFromReference(frame);
187 } else { 187 } else {
188 return v->alignFromReference(frame); 188 return v->alignFromReference(frame);
189 } 189 }