aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-29 08:37:23 +0100
committerMax Kellermann <max@duempel.org>2015-01-29 08:37:23 +0100
commit3adca3c2fa21c4062aff62872b8f7f71d7cffe3e (patch)
tree39102484150b4584530f6670395edd4b52feebb1 /src/db
parent39abd3ecb493c2a12dd08a31042dce07664642d2 (diff)
downloadmpd-3adca3c2fa21c4062aff62872b8f7f71d7cffe3e.tar.gz
mpd-3adca3c2fa21c4062aff62872b8f7f71d7cffe3e.tar.xz
mpd-3adca3c2fa21c4062aff62872b8f7f71d7cffe3e.zip
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.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/update/Walk.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index f71faa86d..9fdb5bbdf 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -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;