Readd a SearchRenderer constructor without Library argument.

Adding the library argument breaks the API. It is better to add
another constructor to not have to create another major version.
This commit is contained in:
Matthieu Gautier
2022-02-25 15:10:36 +01:00
parent a11abcf480
commit ec18eb40ea
2 changed files with 21 additions and 2 deletions

View File

@ -47,6 +47,11 @@ SearchRenderer::SearchRenderer(Searcher* searcher, NameMapper* mapper)
resultStart(searcher->getResultStart())
{}
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper,
unsigned int start, unsigned int estimatedResultCount)
: SearchRenderer(srs, mapper, nullptr, start, estimatedResultCount)
{}
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper, Library* library,
unsigned int start, unsigned int estimatedResultCount)
: m_srs(srs),