comparison data/model/AlignmentModel.cpp @ 1065:0fd3661bcfff tonioni

clone() is never used (therefore presumably never works either)
author Chris Cannam
date Tue, 31 Mar 2015 12:12:31 +0100
parents 2f49be7d4264
children c1b522cfd1ff
comparison
equal deleted inserted replaced
1064:c9fdd9921146 1065:0fd3661bcfff
94 AlignmentModel::getSampleRate() const 94 AlignmentModel::getSampleRate() const
95 { 95 {
96 return m_reference->getSampleRate(); 96 return m_reference->getSampleRate();
97 } 97 }
98 98
99 Model *
100 AlignmentModel::clone() const
101 {
102 return new AlignmentModel
103 (m_reference, m_aligned,
104 m_inputModel ? m_inputModel->clone() : 0,
105 m_rawPath ? static_cast<SparseTimeValueModel *>(m_rawPath->clone()) : 0);
106 }
107
108 bool 99 bool
109 AlignmentModel::isReady(int *completion) const 100 AlignmentModel::isReady(int *completion) const
110 { 101 {
111 if (!m_pathBegun && m_rawPath) { 102 if (!m_pathBegun && m_rawPath) {
112 if (completion) *completion = 0; 103 if (completion) *completion = 0;