From 9c8be949b4653960544faefc15131baa4671ee1d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 21 Jan 2024 11:57:08 +0900 Subject: [PATCH] Replace auto_ptr Signed-off-by: Michele Calgaro --- kded/tdebuildsycoca.cpp | 4 ++-- 1 file 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 #include #include -#include // auto_ptr +#include typedef TQDict KBSEntryDict; typedef TQValueList 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 database( new KSaveFile(path) ); + std::unique_ptr database( new KSaveFile(path) ); if (database->status() == EACCES && TQFile::exists(path)) { TQFile::remove( path );