Small const fix

This commit is contained in:
Lukas W
2014-12-08 20:19:25 +01:00
parent 77f2b56221
commit ed8e30b4ee
5 changed files with 7 additions and 7 deletions

View File

@@ -263,7 +263,7 @@ public slots:
void playAndRecord();
void playTrack( Track * _trackToPlay );
void playBB();
void playPattern( Pattern* patternToPlay, bool _loop = true );
void playPattern(const Pattern* patternToPlay, bool _loop = true );
void togglePause();
void stop();
@@ -354,7 +354,7 @@ private:
tact_t m_length;
Track * m_trackToPlay;
Pattern* m_patternToPlay;
const Pattern* m_patternToPlay;
bool m_loopPattern;
double m_elapsedMilliSeconds;

View File

@@ -468,7 +468,7 @@ public:
int numOfTCOs();
TrackContentObject * getTCO( int _tco_num );
int getTCONum( TrackContentObject * _tco );
int getTCONum(const TrackContentObject* _tco );
const tcoVector & getTCOs() const
{

View File

@@ -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 )
{

View File

@@ -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(),

View File

@@ -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() )