Skip to content

Commit

Permalink
fixup! Rename addClone to addAlias.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Nov 17, 2023
1 parent 4289419 commit fcc3eec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/writer/_dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/writer/creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/writer/direntPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fcc3eec

Please sign in to comment.