- 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:
w1z7ard
2007-08-07 04:32:45 +00:00
parent b29a56616d
commit 0a93bfe93d
12 changed files with 72 additions and 97 deletions

View File

@ -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));
}