summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 16:18:34 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commite0b2e6e3f767240016133dd2d55e0bfb9192ca39 (patch)
tree16373b19bd514dfad5fa4f3eea128ed801e5b726 /helpcompiler
parent6140ca9f1d728475e332f9fa96ee62dda58687ea (diff)
loplugin:loopvartoosmall
Change-Id: Icbe68b31d4ab04ca3cd9f572e3598413946a75c7
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpSearch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpSearch.cxx b/helpcompiler/source/HelpSearch.cxx
index c5d1e4ee15ba..6b0c4202c9cc 100644
--- a/helpcompiler/source/HelpSearch.cxx
+++ b/helpcompiler/source/HelpSearch.cxx
@@ -39,7 +39,7 @@ bool HelpSearch::query(OUString const &queryStr, bool captionOnly,
pQuery = _CLNEW lucene::search::TermQuery(_CLNEW lucene::index::Term(field, &aQueryStr[0]));
lucene::search::Hits *hits = searcher.search(pQuery);
- for (unsigned i = 0; i < hits->length(); ++i) {
+ for (size_t i = 0; i < hits->length(); ++i) {
lucene::document::Document &doc = hits->doc(i); // Document* belongs to Hits.
wchar_t const *path = doc.get(L"path");
rDocuments.push_back(TCHARArrayToOUString(path != 0 ? path : L""));