+ remove a few compile warnings

This commit is contained in:
kelson42 2011-03-24 11:26:58 +00:00
parent bd5205688a
commit 71c3bda0cc
3 changed files with 9 additions and 6 deletions

View File

@ -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;
}
};

View File

@ -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 */

View File

@ -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;
};
}