when removing tracks start removing at the end of track-vector - speeds up things *a lot*

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.3@630 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-12-27 00:29:15 +00:00
parent 5df52a588c
commit 5449af4e6f
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2007-12-27 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/track_container.cpp:
when removing tracks start removing at the end of track-vector (i.e.
use m_trackWidgets.last() instead of m_trackWidgets.first()) - speeds
up things *a lot*
2007-12-26 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/widgets/rack_plugin.cpp:

View File

@@ -101,7 +101,7 @@ trackContainer::~trackContainer()
while( m_trackWidgets.size() )
{
removeTrack( m_trackWidgets.front()->getTrack() );
removeTrack( m_trackWidgets.last()->getTrack() );
}
engine::getProjectJournal()->setJournalling( TRUE );
@@ -324,7 +324,7 @@ void trackContainer::clearAllTracks( void )
{
while( !m_trackWidgets.empty() )
{
removeTrack( m_trackWidgets.front()->getTrack() );
removeTrack( m_trackWidgets.last()->getTrack() );
}
}