From c1a8b4a206ededc645fe60c305912f5c3f0b319d Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sun, 31 Aug 2014 19:27:23 -0600 Subject: [PATCH] + small optim --- src/common/kiwix/indexer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/kiwix/indexer.cpp b/src/common/kiwix/indexer.cpp index 0092bc8d0..69e244643 100644 --- a/src/common/kiwix/indexer.cpp +++ b/src/common/kiwix/indexer.cpp @@ -24,13 +24,16 @@ namespace kiwix { /* Count word */ unsigned int Indexer::countWords(const string &text) { unsigned int numWords = 1; - for(unsigned int i=0; i