Commit 3adca3c2 authored by Max Kellermann's avatar Max Kellermann

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.
parent 39abd3ec
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment