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;
|
||||
|
||||
/* Boost factor */
|
||||
const unsigned int keywordsBoostFactor;
|
||||
inline const unsigned int getTitleBoostFactor(const unsigned int contentLength) {
|
||||
unsigned int keywordsBoostFactor;
|
||||
inline unsigned int getTitleBoostFactor(const unsigned int contentLength) {
|
||||
return contentLength / 500 + 1;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -37,9 +37,12 @@ namespace kiwix {
|
|||
|
||||
/* Constructor */
|
||||
Searcher::Searcher() :
|
||||
estimatedResultCount(0),
|
||||
resultTemplatePath(""),
|
||||
searchPattern("") {
|
||||
searchPattern(""),
|
||||
resultCountPerPage(0),
|
||||
estimatedResultCount(0),
|
||||
resultStart(0),
|
||||
resultEnd(0) {
|
||||
}
|
||||
|
||||
/* Search strings in the database */
|
||||
|
|
|
@ -82,11 +82,11 @@ namespace kiwix {
|
|||
std::vector<Result> results;
|
||||
std::vector<Result>::iterator resultOffset;
|
||||
std::string resultTemplatePath;
|
||||
std::string searchPattern;
|
||||
unsigned int resultCountPerPage;
|
||||
unsigned int estimatedResultCount;
|
||||
unsigned int resultStart;
|
||||
unsigned int resultEnd;
|
||||
unsigned int estimatedResultCount;
|
||||
std::string searchPattern;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue