db/update/Walk: use std::unique_ptr instead of std::auto_ptr

std::auto_ptr is deprecated, and std::unique_ptr is much better
anyway.
This commit is contained in:
Max Kellermann 2015-01-29 08:37:23 +01:00
parent 39abd3ecb4
commit 3adca3c2fa
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ UpdateWalk::UpdateDirectory(Directory &directory, const FileInfo &info)
directory_set_stat(directory, info);
Error error;
const std::auto_ptr<StorageDirectoryReader> reader(storage.OpenDirectory(directory.GetPath(), error));
const std::unique_ptr<StorageDirectoryReader> reader(storage.OpenDirectory(directory.GetPath(), error));
if (reader.get() == nullptr) {
LogError(error);
return false;