use std::unique_ptr instead of the deprecated std::auto_ptr.
Authored by: tortoisesvn 2012-11-24
Parent: [r693]
Child: [r695]