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:
parent
39abd3ecb4
commit
3adca3c2fa
@ -334,7 +334,7 @@ UpdateWalk::UpdateDirectory(Directory &directory, const FileInfo &info)
|
|||||||
directory_set_stat(directory, info);
|
directory_set_stat(directory, info);
|
||||||
|
|
||||||
Error error;
|
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) {
|
if (reader.get() == nullptr) {
|
||||||
LogError(error);
|
LogError(error);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user