mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-17 05:55:49 +00:00
lots of changes
- project init / destroy memory leak bugs fixed. some still exist - moodbar partial integration. will be removed later git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@443 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -96,7 +96,8 @@ void PresetLoader::rescan()
|
||||
}
|
||||
|
||||
// Push all entries in order from the file set to the file entries member (which is an indexed vector)
|
||||
for (std::set<std::string>::iterator pos = alphaSortedFileSet.begin(); pos != alphaSortedFileSet.end();++pos)
|
||||
for (std::set<std::string>::iterator pos = alphaSortedFileSet.begin();
|
||||
pos != alphaSortedFileSet.end();++pos)
|
||||
m_entries.push_back(*pos);
|
||||
}
|
||||
|
||||
@ -107,7 +108,7 @@ std::auto_ptr<Preset> PresetLoader::loadPreset(unsigned int index, const PresetI
|
||||
assert(index >= 0);
|
||||
assert(index < m_entries.size());
|
||||
|
||||
// Return a new pointer to a present
|
||||
// Return a new autopointer to a present
|
||||
return std::auto_ptr<Preset>(new Preset(m_entries[index], presetInputs, presetOutputs));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user