From 0779333064b2b0f752dfb1d81259f7d24e9a7317 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 27 Oct 2020 19:02:46 +0100 Subject: [PATCH] db/update/Walk: adjust lamba indent --- src/db/update/Walk.cxx | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx index 7526c6b6f..87304df62 100644 --- a/src/db/update/Walk.cxx +++ b/src/db/update/Walk.cxx @@ -69,46 +69,46 @@ UpdateWalk::RemoveExcludedFromDirectory(Directory &directory, const ScopeDatabaseLock protect; directory.ForEachChildSafe([&](Directory &child){ - const auto name_fs = - AllocatedPath::FromUTF8(child.GetName()); + const auto name_fs = + AllocatedPath::FromUTF8(child.GetName()); - if (name_fs.IsNull() || exclude_list.Check(name_fs)) { - editor.DeleteDirectory(&child); - modified = true; - } - }); + if (name_fs.IsNull() || exclude_list.Check(name_fs)) { + editor.DeleteDirectory(&child); + modified = true; + } + }); directory.ForEachSongSafe([&](Song &song){ - assert(&song.parent == &directory); + assert(&song.parent == &directory); - const auto name_fs = AllocatedPath::FromUTF8(song.filename); - if (name_fs.IsNull() || exclude_list.Check(name_fs)) { - editor.DeleteSong(directory, &song); - modified = true; - } - }); + const auto name_fs = AllocatedPath::FromUTF8(song.filename); + if (name_fs.IsNull() || exclude_list.Check(name_fs)) { + editor.DeleteSong(directory, &song); + modified = true; + } + }); } inline void UpdateWalk::PurgeDeletedFromDirectory(Directory &directory) noexcept { directory.ForEachChildSafe([&](Directory &child){ - if (child.IsMount() || DirectoryExists(storage, child)) - return; + if (child.IsMount() || DirectoryExists(storage, child)) + return; - editor.LockDeleteDirectory(&child); + editor.LockDeleteDirectory(&child); - modified = true; - }); + modified = true; + }); directory.ForEachSongSafe([&](Song &song){ - if (!directory_child_is_regular(storage, directory, - song.filename)) { - editor.LockDeleteSong(directory, &song); + if (!directory_child_is_regular(storage, directory, + song.filename)) { + editor.LockDeleteSong(directory, &song); - modified = true; - } - }); + modified = true; + } + }); for (auto i = directory.playlists.begin(), end = directory.playlists.end();