cpplint corrections

This commit is contained in:
rjawor 2017-04-22 23:47:48 +02:00
parent 970dda5dc2
commit a0673df75a

View File

@ -22,7 +22,7 @@ MatchedPatternFragment IndexSearcher::simpleSearch(
bool byWhitespace) throw(ConcordiaException) { bool byWhitespace) throw(ConcordiaException) {
int left; int left;
std::vector<INDEX_CHARACTER_TYPE> hash = std::vector<INDEX_CHARACTER_TYPE> hash =
hashGenerator->generateHash(pattern, byWhitespace).getCodes(); hashGenerator->generateHash(pattern, byWhitespace).getCodes();
saidx_t patternLength = hash.size()*sizeof(INDEX_CHARACTER_TYPE); saidx_t patternLength = hash.size()*sizeof(INDEX_CHARACTER_TYPE);
sauchar_t * patternArray = Utils::indexVectorToSaucharArray(hash); sauchar_t * patternArray = Utils::indexVectorToSaucharArray(hash);
@ -113,7 +113,8 @@ boost::shared_ptr<ConcordiaSearchResult> IndexSearcher::concordiaSearch(
boost::shared_ptr<std::vector<saidx_t> > SA, boost::shared_ptr<std::vector<saidx_t> > SA,
const std::string & pattern, const std::string & pattern,
bool byWhitespace) throw(ConcordiaException) { bool byWhitespace) throw(ConcordiaException) {
TokenizedSentence hashedPattern = hashGenerator->generateHash(pattern, byWhitespace); TokenizedSentence hashedPattern =
hashGenerator->generateHash(pattern, byWhitespace);
boost::shared_ptr<ConcordiaSearchResult> result = boost::shared_ptr<ConcordiaSearchResult> result =
boost::shared_ptr<ConcordiaSearchResult>( boost::shared_ptr<ConcordiaSearchResult>(
new ConcordiaSearchResult(hashedPattern)); new ConcordiaSearchResult(hashedPattern));