From b50a2a227a6f94839ebbb83a1ae4cda1d8cce9ff Mon Sep 17 00:00:00 2001 From: Maneesh P M Date: Wed, 7 Jul 2021 23:44:35 +0530 Subject: [PATCH] fixup! Update kiwix::book to use libzim structure --- include/book.h | 5 ++++- src/book.cpp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/book.h b/include/book.h index 071762a57..a9db6df2c 100644 --- a/include/book.h +++ b/include/book.h @@ -21,12 +21,15 @@ #define KIWIX_BOOK_H #include -#include namespace pugi { class xml_node; } +namespace zim { +class Archive; +} + namespace kiwix { diff --git a/src/book.cpp b/src/book.cpp index ae3a18363..da37ea042 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -29,6 +29,8 @@ #include "tools/pathTools.h" #include "tools/archiveTools.h" +#include + #include namespace kiwix @@ -98,7 +100,6 @@ void Book::update(const zim::Archive& archive) { m_flavour = getMetaFlavour(archive); m_tags = getMetaTags(archive); m_category = getCategoryFromTags(); - m_origId = getArchiveOrigId(archive); m_articleCount = archive.getArticleCount(); m_mediaCount = getArchiveMediaCount(archive); m_size = static_cast(getArchiveFileSize(archive)) << 10;