mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-17 11:18:30 -04:00
@@ -1762,7 +1762,8 @@ void DataFile::upgrade_defaultTripleOscillatorHQ()
|
||||
void DataFile::upgrade()
|
||||
{
|
||||
// Runs all necessary upgrade methods
|
||||
std::for_each( UPGRADE_METHODS.begin() + m_fileVersion, UPGRADE_METHODS.end(),
|
||||
std::size_t max = std::min(static_cast<std::size_t>(m_fileVersion), UPGRADE_METHODS.size());
|
||||
std::for_each( UPGRADE_METHODS.begin() + max, UPGRADE_METHODS.end(),
|
||||
[this](UpgradeMethod um)
|
||||
{
|
||||
(this->*um)();
|
||||
|
||||
Reference in New Issue
Block a user