summaryrefslogtreecommitdiffstats
path: root/kded
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-21 11:57:08 +0900
committerMichele Calgaro <[email protected]>2024-01-23 09:50:31 +0900
commit7b83dfe033d01bee7cb0f6f8751d9426c4bab76c (patch)
treed0048cfa7bb0a8a4c2252bd2700b6437c355e2a9 /kded
parent7f03918f8df7479b0e1a88288066201a301e87bf (diff)
downloadtdelibs-7b83dfe033d01bee7cb0f6f8751d9426c4bab76c.tar.gz
tdelibs-7b83dfe033d01bee7cb0f6f8751d9426c4bab76c.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 9c8be949b4653960544faefc15131baa4671ee1d)
Diffstat (limited to 'kded')
-rw-r--r--kded/tdebuildsycoca.cpp4
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 );