mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-18 22:25:33 +00:00
- put back auto_ptrs: take that sperly man
- improved functionality in preset previous / next - removed dead code in various files git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@308 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -96,7 +96,7 @@ void PresetLoader::rescan()
|
||||
|
||||
}
|
||||
|
||||
Preset * PresetLoader::loadPreset(unsigned int index, const PresetInputs & presetInputs, PresetOutputs & presetOutputs) const
|
||||
std::auto_ptr<Preset> PresetLoader::loadPreset(unsigned int index, const PresetInputs & presetInputs, PresetOutputs & presetOutputs) const
|
||||
{
|
||||
|
||||
// Check that index isn't insane
|
||||
@ -104,7 +104,7 @@ Preset * PresetLoader::loadPreset(unsigned int index, const PresetInputs & prese
|
||||
assert(index < m_entries.size());
|
||||
|
||||
// Return a new pointer to a present
|
||||
return new Preset(m_entries[index], presetInputs, presetOutputs);
|
||||
return std::auto_ptr<Preset>(new Preset(m_entries[index], presetInputs, presetOutputs));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user