diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-21 11:57:08 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-21 11:57:08 +0900 |
commit | 9c8be949b4653960544faefc15131baa4671ee1d (patch) | |
tree | 75ad40e48bb22014dfadd2ef5f22a57ba81f8067 /kded | |
parent | ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7 (diff) | |
download | tdelibs-9c8be949b4653960544faefc15131baa4671ee1d.tar.gz tdelibs-9c8be949b4653960544faefc15131baa4671ee1d.zip |
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kded')
-rw-r--r-- | kded/tdebuildsycoca.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kded/tdebuildsycoca.cpp b/kded/tdebuildsycoca.cpp index 5917bf762..b8badc994 100644 --- a/kded/tdebuildsycoca.cpp +++ b/kded/tdebuildsycoca.cpp @@ -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 ); |