simplify
This commit is contained in:
@@ -234,21 +234,21 @@ void TimingData::ShiftRows( float fStartBeat, float fBeatsToShift )
|
|||||||
|
|
||||||
for( ix = 0; ix < m_BPMSegments.size(); ix++ )
|
for( ix = 0; ix < m_BPMSegments.size(); ix++ )
|
||||||
{
|
{
|
||||||
const float fSegStart = m_BPMSegments[ix].m_fStartBeat;
|
float &fSegStart = m_BPMSegments[ix].m_fStartBeat;
|
||||||
if( fSegStart < fStartBeat )
|
if( fSegStart < fStartBeat )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
m_BPMSegments[ix].m_fStartBeat += fBeatsToShift;
|
fSegStart += fBeatsToShift;
|
||||||
m_BPMSegments[ix].m_fStartBeat = max( m_BPMSegments[ix].m_fStartBeat, fStartBeat );
|
fSegStart = max( fSegStart, fStartBeat );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( ix = 0; ix < m_StopSegments.size(); ix++ )
|
for( ix = 0; ix < m_StopSegments.size(); ix++ )
|
||||||
{
|
{
|
||||||
const float fSegStart = m_StopSegments[ix].m_fStartBeat;
|
float &fSegStart = m_StopSegments[ix].m_fStartBeat;
|
||||||
if( fSegStart < fStartBeat )
|
if( fSegStart < fStartBeat )
|
||||||
continue;
|
continue;
|
||||||
m_StopSegments[ix].m_fStartBeat += fBeatsToShift;
|
fSegStart += fBeatsToShift;
|
||||||
m_StopSegments[ix].m_fStartBeat = max( m_StopSegments[ix].m_fStartBeat, fStartBeat );
|
fSegStart = max( fSegStart, fStartBeat );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user