Mercurial > hg > svcore
diff data/model/Model.cpp @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | 59e7fe1b1003 |
children | 4b9fc70a37d5 |
line wrap: on
line diff
--- a/data/model/Model.cpp Tue Jun 03 11:05:49 2014 +0100 +++ b/data/model/Model.cpp Wed Jun 18 13:51:16 2014 +0100 @@ -106,27 +106,27 @@ return m_alignment->getReferenceModel(); } -size_t -Model::alignToReference(size_t frame) const +int +Model::alignToReference(int frame) const { if (!m_alignment) { if (m_sourceModel) return m_sourceModel->alignToReference(frame); else return frame; } - size_t refFrame = m_alignment->toReference(frame); + int refFrame = m_alignment->toReference(frame); const Model *m = m_alignment->getReferenceModel(); if (m && refFrame > m->getEndFrame()) refFrame = m->getEndFrame(); return refFrame; } -size_t -Model::alignFromReference(size_t refFrame) const +int +Model::alignFromReference(int refFrame) const { if (!m_alignment) { if (m_sourceModel) return m_sourceModel->alignFromReference(refFrame); else return refFrame; } - size_t frame = m_alignment->fromReference(refFrame); + int frame = m_alignment->fromReference(refFrame); if (frame > getEndFrame()) frame = getEndFrame(); return frame; }