summaryrefslogtreecommitdiff
path: root/helpcompiler/source/HelpSearch.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'helpcompiler/source/HelpSearch.cxx')
-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""));