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:
Matthieu Gautier 2022-06-10 10:39:39 +02:00
parent 69c5c88c30
commit b442e2371e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }