mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
NameMapper detects all naming conflicts
Also this change leads to the change in the mapping (since conflicts that previously went undetected and just overwrote the existing entry are now rejected).
This commit is contained in:
committed by
Matthieu Gautier
parent
181893d31a
commit
0168764f4c
@ -29,7 +29,7 @@ HumanReadableNameMapper::HumanReadableNameMapper(kiwix::Library& library, bool w
|
||||
auto& currentBook = library.getBookById(bookId);
|
||||
auto bookName = currentBook.getHumanReadableIdFromPath();
|
||||
m_idToName[bookId] = bookName;
|
||||
m_nameToId[bookName] = bookId;
|
||||
mapName(library, bookName, bookId);
|
||||
|
||||
if (!withAlias)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user