mirror of https://github.com/kiwix/libkiwix.git
Remove default value for book pointer of `readBookFromPath`.
This is a nonsense to accept NULL pointer here.
This commit is contained in:
parent
7804bf2276
commit
5128861136
|
@ -203,7 +203,7 @@ class Manager
|
||||||
protected:
|
protected:
|
||||||
kiwix::Library* library;
|
kiwix::Library* library;
|
||||||
|
|
||||||
bool readBookFromPath(const std::string& path, Book* book = NULL);
|
bool readBookFromPath(const std::string& path, Book* book);
|
||||||
bool parseXmlDom(const pugi::xml_document& doc,
|
bool parseXmlDom(const pugi::xml_document& doc,
|
||||||
const bool readOnly,
|
const bool readOnly,
|
||||||
const std::string& libraryPath);
|
const std::string& libraryPath);
|
||||||
|
|
|
@ -55,7 +55,7 @@ bool Manager::parseXmlDom(const pugi::xml_document& doc,
|
||||||
|| atoi(libraryVersion.c_str()) <= atoi(KIWIX_LIBRARY_VERSION)) {
|
|| atoi(libraryVersion.c_str()) <= atoi(KIWIX_LIBRARY_VERSION)) {
|
||||||
ok = false;
|
ok = false;
|
||||||
if (!book.getPath().empty()) {
|
if (!book.getPath().empty()) {
|
||||||
ok = this->readBookFromPath(book.getPath());
|
ok = this->readBookFromPath(book.getPath(), &book);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue