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.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/helpcompiler/source/HelpSearch.cxx b/helpcompiler/source/HelpSearch.cxx
index 40022c22b505..cb33d8afd9d2 100644
--- a/helpcompiler/source/HelpSearch.cxx
+++ b/helpcompiler/source/HelpSearch.cxx
@@ -33,16 +33,16 @@
#include "LuceneHelper.hxx"
-HelpSearch::HelpSearch(rtl::OUString const &lang, rtl::OUString const &indexDir)
+HelpSearch::HelpSearch(OUString const &lang, OUString const &indexDir)
: d_lang(lang)
{
- rtl::OUString ustrSystemPath;
+ OUString ustrSystemPath;
osl::File::getSystemPathFromFileURL(indexDir, ustrSystemPath);
- d_indexDir = rtl::OUStringToOString(ustrSystemPath, osl_getThreadTextEncoding());
+ d_indexDir = OUStringToOString(ustrSystemPath, osl_getThreadTextEncoding());
}
-bool HelpSearch::query(rtl::OUString const &queryStr, bool captionOnly,
- std::vector<rtl::OUString> &rDocuments, std::vector<float> &rScores) {
+bool HelpSearch::query(OUString const &queryStr, bool captionOnly,
+ std::vector<OUString> &rDocuments, std::vector<float> &rScores) {
lucene::index::IndexReader *reader = lucene::index::IndexReader::open(d_indexDir.getStr());
lucene::search::IndexSearcher searcher(reader);