mirror of https://github.com/kiwix/libkiwix.git
+ remove a few compile warnings
This commit is contained in:
parent
bd5205688a
commit
71c3bda0cc
|
@ -75,8 +75,8 @@ namespace kiwix {
|
||||||
float stepSize;
|
float stepSize;
|
||||||
|
|
||||||
/* Boost factor */
|
/* Boost factor */
|
||||||
const unsigned int keywordsBoostFactor;
|
unsigned int keywordsBoostFactor;
|
||||||
inline const unsigned int getTitleBoostFactor(const unsigned int contentLength) {
|
inline unsigned int getTitleBoostFactor(const unsigned int contentLength) {
|
||||||
return contentLength / 500 + 1;
|
return contentLength / 500 + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,9 +37,12 @@ namespace kiwix {
|
||||||
|
|
||||||
/* Constructor */
|
/* Constructor */
|
||||||
Searcher::Searcher() :
|
Searcher::Searcher() :
|
||||||
estimatedResultCount(0),
|
|
||||||
resultTemplatePath(""),
|
resultTemplatePath(""),
|
||||||
searchPattern("") {
|
searchPattern(""),
|
||||||
|
resultCountPerPage(0),
|
||||||
|
estimatedResultCount(0),
|
||||||
|
resultStart(0),
|
||||||
|
resultEnd(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search strings in the database */
|
/* Search strings in the database */
|
||||||
|
|
|
@ -82,11 +82,11 @@ namespace kiwix {
|
||||||
std::vector<Result> results;
|
std::vector<Result> results;
|
||||||
std::vector<Result>::iterator resultOffset;
|
std::vector<Result>::iterator resultOffset;
|
||||||
std::string resultTemplatePath;
|
std::string resultTemplatePath;
|
||||||
|
std::string searchPattern;
|
||||||
unsigned int resultCountPerPage;
|
unsigned int resultCountPerPage;
|
||||||
|
unsigned int estimatedResultCount;
|
||||||
unsigned int resultStart;
|
unsigned int resultStart;
|
||||||
unsigned int resultEnd;
|
unsigned int resultEnd;
|
||||||
unsigned int estimatedResultCount;
|
|
||||||
std::string searchPattern;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue