mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-11 08:08:28 -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);
|
auto archive = getArchiveById(id);
|
||||||
if(archive) {
|
if(archive) {
|
||||||
return std::make_shared<Reader>(archive);
|
return std::shared_ptr<Reader>(new Reader(archive, true));
|
||||||
} else {
|
} else {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user