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