From aeb41c9b9b7559c6d87bf92807acdc0df9e104cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 Oct 2013 17:17:50 +0200 Subject: remove redundant calls to OUString constructor Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6 --- helpcompiler/source/HelpLinker.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'helpcompiler') diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index b50b2ce301f3..33e320a9b2db 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -810,7 +810,7 @@ void HelpLinker::main( std::vector &args, //This part is used when compileExtensionHelp is called from the extensions manager. //If extension help is compiled using helplinker in the build process OUString aIdxCaptionPathFileURL( *pOfficeHelpPath ); - aIdxCaptionPathFileURL += OUString("/idxcaption.xsl"); + aIdxCaptionPathFileURL += "/idxcaption.xsl"; OString aOStr_IdxCaptionPathFileURL( OUStringToOString ( aIdxCaptionPathFileURL, fs::getThreadTextEncoding() ) ); @@ -835,7 +835,7 @@ void HelpLinker::main( std::vector &args, //then -idxcontent must be supplied //This part is used when compileExtensionHelp is called from the extensions manager. OUString aIdxContentPathFileURL( *pOfficeHelpPath ); - aIdxContentPathFileURL += OUString("/idxcontent.xsl"); + aIdxContentPathFileURL += "/idxcontent.xsl"; OString aOStr_IdxContentPathFileURL( OUStringToOString ( aIdxContentPathFileURL, fs::getThreadTextEncoding() ) ); @@ -971,8 +971,7 @@ HELPLINKER_DLLPUBLIC bool compileExtensionHelp // The following basically checks if the help.tree is well formed XML. // Apparently there have been cases when translations contained // non-well-formed XML in the past. - OUString aTreeFileURL = aExtensionLanguageRoot; - aTreeFileURL += OUString("/help.tree"); + OUString aTreeFileURL = aExtensionLanguageRoot + "/help.tree"; osl::DirectoryItem aTreeFileItem; osl::FileBase::RC rcGet = osl::DirectoryItem::get( aTreeFileURL, aTreeFileItem ); osl::FileStatus aFileStatus( osl_FileStatus_Mask_FileSize ); -- cgit