Mercurial > hg > svcore
comparison data/model/AlignmentModel.cpp @ 1666:c7bf655955ae osc-script
Debug output
author | Chris Cannam |
---|---|
date | Tue, 26 Mar 2019 14:30:14 +0000 |
parents | 628ffbb05856 |
children | f97d64b8674f |
comparison
equal
deleted
inserted
replaced
1665:813dadf7c086 | 1666:c7bf655955ae |
---|---|
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 AlignmentModel::~AlignmentModel() | 55 AlignmentModel::~AlignmentModel() |
56 { | 56 { |
57 SVDEBUG << "AlignmentModel(" << this << ")::~AlignmentModel()" << endl; | |
58 | |
57 if (m_inputModel) m_inputModel->aboutToDelete(); | 59 if (m_inputModel) m_inputModel->aboutToDelete(); |
58 delete m_inputModel; | 60 delete m_inputModel; |
59 | 61 |
60 if (m_rawPath) m_rawPath->aboutToDelete(); | 62 if (m_rawPath) m_rawPath->aboutToDelete(); |
61 delete m_rawPath; | 63 delete m_rawPath; |
199 | 201 |
200 int completion = 0; | 202 int completion = 0; |
201 m_rawPath->isReady(&completion); | 203 m_rawPath->isReady(&completion); |
202 | 204 |
203 #ifdef DEBUG_ALIGNMENT_MODEL | 205 #ifdef DEBUG_ALIGNMENT_MODEL |
204 cerr << "AlignmentModel::pathCompletionChanged: completion = " | 206 SVCERR << "AlignmentModel::pathCompletionChanged: completion = " |
205 << completion << endl; | 207 << completion << endl; |
206 #endif | 208 #endif |
207 | 209 |
208 m_pathComplete = (completion == 100); | 210 m_pathComplete = (completion == 100); |
209 | 211 |
210 if (m_pathComplete) { | 212 if (m_pathComplete) { |
211 | 213 |
212 constructPath(); | 214 constructPath(); |
213 constructReversePath(); | 215 constructReversePath(); |
214 | 216 |
217 SVDEBUG << "AlignmentModel: path complete, deleting input" << endl; | |
215 if (m_inputModel) m_inputModel->aboutToDelete(); | 218 if (m_inputModel) m_inputModel->aboutToDelete(); |
216 delete m_inputModel; | 219 delete m_inputModel; |
217 m_inputModel = nullptr; | 220 m_inputModel = nullptr; |
218 } | 221 } |
219 } | 222 } |