Replace auto_ptr

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9c8be949b4)
pull/271/head
Michele Calgaro 10 months ago
parent 7f03918f8d
commit 7b83dfe033
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -63,7 +63,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <memory> // auto_ptr
#include <memory>
typedef TQDict<KSycocaEntry> KBSEntryDict;
typedef TQValueList<KSycocaEntry::List> KSycocaEntryListList;
@ -468,7 +468,7 @@ bool KBuildSycoca::recreate()
// KSaveFile first writes to a temp file.
// Upon close() it moves the stuff to the right place.
std::auto_ptr<KSaveFile> database( new KSaveFile(path) );
std::unique_ptr<KSaveFile> database( new KSaveFile(path) );
if (database->status() == EACCES && TQFile::exists(path))
{
TQFile::remove( path );

Loading…
Cancel
Save