Small const fix
This commit is contained in:
@@ -473,7 +473,7 @@ void Song::playBB()
|
||||
|
||||
|
||||
|
||||
void Song::playPattern( Pattern* patternToPlay, bool _loop )
|
||||
void Song::playPattern( const Pattern* patternToPlay, bool _loop )
|
||||
{
|
||||
if( isStopped() == false )
|
||||
{
|
||||
|
||||
@@ -2139,7 +2139,7 @@ TrackContentObject * Track::getTCO( int _tco_num )
|
||||
* \param _tco The TrackContentObject to search for.
|
||||
* \return its number in our array.
|
||||
*/
|
||||
int Track::getTCONum( TrackContentObject * _tco )
|
||||
int Track::getTCONum( const TrackContentObject * _tco )
|
||||
{
|
||||
// for( int i = 0; i < getTrackContentWidget()->numOfTCOs(); ++i )
|
||||
tcoVector::iterator it = qFind( m_trackContentObjects.begin(),
|
||||
|
||||
@@ -1934,7 +1934,7 @@ void AutomationEditor::play()
|
||||
if( Engine::getSong()->playMode() != Song::Mode_PlayPattern )
|
||||
{
|
||||
Engine::getSong()->stop();
|
||||
Engine::getSong()->playPattern( (Pattern *) Engine::pianoRoll()->currentPattern() );
|
||||
Engine::getSong()->playPattern( Engine::pianoRoll()->currentPattern() );
|
||||
}
|
||||
else if( Engine::getSong()->isStopped() == false )
|
||||
{
|
||||
@@ -1942,7 +1942,7 @@ void AutomationEditor::play()
|
||||
}
|
||||
else
|
||||
{
|
||||
Engine::getSong()->playPattern( (Pattern *) Engine::pianoRoll()->currentPattern() );
|
||||
Engine::getSong()->playPattern( Engine::pianoRoll()->currentPattern() );
|
||||
}
|
||||
}
|
||||
else if( inBBEditor() )
|
||||
|
||||
Reference in New Issue
Block a user