mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00
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…
x
Reference in New Issue
Block a user