mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
+ remove a few compile warnings
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user