From 97a9adcbec813ca6d0d816c77e39009f9d5778b6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Sep 2019 19:54:18 +0200 Subject: [PATCH] db/update/Archive: convert pointer to reference --- src/db/update/Archive.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx index a73c5a3a7..c7f15984f 100644 --- a/src/db/update/Archive.cxx +++ b/src/db/update/Archive.cxx @@ -100,17 +100,17 @@ UpdateWalk::UpdateArchiveTree(ArchiveFile &archive, Directory &directory, class UpdateArchiveVisitor final : public ArchiveVisitor { UpdateWalk &walk; ArchiveFile &archive; - Directory *directory; + Directory &directory; public: UpdateArchiveVisitor(UpdateWalk &_walk, ArchiveFile &_archive, - Directory *_directory) noexcept + Directory &_directory) noexcept :walk(_walk), archive(_archive), directory(_directory) {} virtual void VisitArchiveEntry(const char *path_utf8) override { FormatDebug(update_domain, "adding archive file: %s", path_utf8); - walk.UpdateArchiveTree(archive, *directory, path_utf8); + walk.UpdateArchiveTree(archive, directory, path_utf8); } }; @@ -152,7 +152,7 @@ UpdateWalk::UpdateArchiveFile(Directory &parent, const char *name, FormatDebug(update_domain, "archive %s opened", path_fs.c_str()); - UpdateArchiveVisitor visitor(*this, *file, directory); + UpdateArchiveVisitor visitor(*this, *file, *directory); file->Visit(visitor); }