mirror of https://github.com/kiwix/libkiwix.git
Do not use deprecated constructor for Reader.
We have a specific private non deprecated constructor especially for that, let's use it.
This commit is contained in:
parent
69c5c88c30
commit
b442e2371e
|
@ -282,7 +282,7 @@ std::shared_ptr<Reader> Library::getReaderById(const std::string& id)
|
|||
{
|
||||
auto archive = getArchiveById(id);
|
||||
if(archive) {
|
||||
return std::make_shared<Reader>(archive);
|
||||
return std::shared_ptr<Reader>(new Reader(archive, true));
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue