From e52779d2f8722c713f72aedbf475267440d729f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Nov 2013 14:00:40 +0200 Subject: remove unnecessary use of OUString constructor Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71 --- helpcompiler/source/HelpIndexer.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'helpcompiler/source') diff --git a/helpcompiler/source/HelpIndexer.cxx b/helpcompiler/source/HelpIndexer.cxx index b3508a7f8882..2a07f70ef28a 100644 --- a/helpcompiler/source/HelpIndexer.cxx +++ b/helpcompiler/source/HelpIndexer.cxx @@ -97,7 +97,7 @@ bool HelpIndexer::scanForFiles(OUString const & path) { osl::Directory dir(path); if (osl::FileBase::E_None != dir.open()) { - d_error = OUString("Error reading directory ") + path; + d_error = "Error reading directory " + path; return true; } @@ -116,8 +116,7 @@ bool HelpIndexer::scanForFiles(OUString const & path) { bool HelpIndexer::helpDocument(OUString const & fileName, Document *doc) { // Add the help path as an indexed, untokenized field. - OUString path = OUString("#HLP#") + - d_module + OUString("/") + fileName; + OUString path = "#HLP#" + d_module + "/" + fileName; std::vector aPath(OUStringToTCHARVec(path)); doc->add(*_CLNEW Field(_T("path"), &aPath[0], Field::STORE_YES | Field::INDEX_UNTOKENIZED)); -- cgit v1.2.3