From e0b2e6e3f767240016133dd2d55e0bfb9192ca39 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 28 May 2015 16:18:34 +0200 Subject: loplugin:loopvartoosmall Change-Id: Icbe68b31d4ab04ca3cd9f572e3598413946a75c7 --- helpcompiler/source/HelpSearch.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpcompiler') 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"")); -- cgit v1.2.3