From fcc3eec0f5cb7784289b34e5a63d6e03c39eb450 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 17 Nov 2023 13:09:52 +0100 Subject: [PATCH] fixup! Rename addClone to addAlias. --- src/writer/_dirent.h | 2 +- src/writer/creator.cpp | 2 +- src/writer/direntPool.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/writer/_dirent.h b/src/writer/_dirent.h index 548ee80b6..2b75af4db 100644 --- a/src/writer/_dirent.h +++ b/src/writer/_dirent.h @@ -169,7 +169,7 @@ namespace zim // Creator for a "redirection" dirent Dirent(NS ns, const std::string& path, const std::string& title, NS targetNs, const std::string& targetPath); - // Creator for a "clone" dirent. Reuse the namespace of the targeted Dirent. + // Creator for a "alias" dirent. Reuse the namespace of the targeted Dirent. Dirent(const std::string& path, const std::string& title, const Dirent& target); // Creator for "temporary" dirent, used to search for dirent in container. diff --git a/src/writer/creator.cpp b/src/writer/creator.cpp index fd842a851..127661e6d 100644 --- a/src/writer/creator.cpp +++ b/src/writer/creator.cpp @@ -617,7 +617,7 @@ namespace zim Dirent* CreatorData::createAliasDirent(const std::string& path, const std::string& title, const Dirent& target) { - auto dirent = pool.getCloneDirent(path, title, target); + auto dirent = pool.getAliasDirent(path, title, target); addDirent(dirent); return dirent; } diff --git a/src/writer/direntPool.h b/src/writer/direntPool.h index e8caced8c..8ee9fd2bf 100644 --- a/src/writer/direntPool.h +++ b/src/writer/direntPool.h @@ -84,7 +84,7 @@ namespace zim return dirent; } - Dirent* getCloneDirent(const std::string& path, const std::string& title, const Dirent& target) { + Dirent* getAliasDirent(const std::string& path, const std::string& title, const Dirent& target) { auto dirent = getDirentSlot(); new (dirent) Dirent(path, title, target); return dirent;