mirror of https://github.com/kiwix/libkiwix.git
Make `SearchRendered` taking a const pointer.
This commit is contained in:
parent
1316dec37c
commit
ead1474ead
|
@ -46,7 +46,7 @@ class SearchRenderer
|
||||||
* @param start The start offset used for the srs.
|
* @param start The start offset used for the srs.
|
||||||
* @param estimatedResultCount The estimatedResultCount of the whole search
|
* @param estimatedResultCount The estimatedResultCount of the whole search
|
||||||
*/
|
*/
|
||||||
SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper,
|
SearchRenderer(zim::SearchResultSet srs, const NameMapper* mapper,
|
||||||
unsigned int start, unsigned int estimatedResultCount);
|
unsigned int start, unsigned int estimatedResultCount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +58,7 @@ class SearchRenderer
|
||||||
* @param start The start offset used for the srs.
|
* @param start The start offset used for the srs.
|
||||||
* @param estimatedResultCount The estimatedResultCount of the whole search
|
* @param estimatedResultCount The estimatedResultCount of the whole search
|
||||||
*/
|
*/
|
||||||
SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper, Library* library,
|
SearchRenderer(zim::SearchResultSet srs, const NameMapper* mapper, Library* library,
|
||||||
unsigned int start, unsigned int estimatedResultCount);
|
unsigned int start, unsigned int estimatedResultCount);
|
||||||
|
|
||||||
~SearchRenderer();
|
~SearchRenderer();
|
||||||
|
@ -106,7 +106,7 @@ class SearchRenderer
|
||||||
protected:
|
protected:
|
||||||
std::string beautifyInteger(const unsigned int number);
|
std::string beautifyInteger(const unsigned int number);
|
||||||
zim::SearchResultSet m_srs;
|
zim::SearchResultSet m_srs;
|
||||||
NameMapper* mp_nameMapper;
|
const NameMapper* mp_nameMapper;
|
||||||
Library* mp_library;
|
Library* mp_library;
|
||||||
std::string searchBookQuery;
|
std::string searchBookQuery;
|
||||||
std::string searchPattern;
|
std::string searchPattern;
|
||||||
|
|
|
@ -36,12 +36,12 @@ namespace kiwix
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Constructor */
|
/* Constructor */
|
||||||
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper,
|
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, const NameMapper* mapper,
|
||||||
unsigned int start, unsigned int estimatedResultCount)
|
unsigned int start, unsigned int estimatedResultCount)
|
||||||
: SearchRenderer(srs, mapper, nullptr, start, estimatedResultCount)
|
: SearchRenderer(srs, mapper, nullptr, start, estimatedResultCount)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper, Library* library,
|
SearchRenderer::SearchRenderer(zim::SearchResultSet srs, const NameMapper* mapper, Library* library,
|
||||||
unsigned int start, unsigned int estimatedResultCount)
|
unsigned int start, unsigned int estimatedResultCount)
|
||||||
: m_srs(srs),
|
: m_srs(srs),
|
||||||
mp_nameMapper(mapper),
|
mp_nameMapper(mapper),
|
||||||
|
|
Loading…
Reference in New Issue