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 --- desktop/source/app/app.cxx | 5 ++--- desktop/source/app/officeipcthread.cxx | 4 ++-- desktop/source/deployment/registry/help/dp_help.cxx | 10 +++++----- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index b9e4ad13278d..e17ed30713c5 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1504,9 +1504,8 @@ int Desktop::Main() #ifdef DBG_UTIL //include buildid in non product builds OUString aDefault("development"); - aTitle += OUString(" ["); - OUString aVerId( utl::Bootstrap::getBuildIdData(aDefault)); - aTitle += aVerId; + aTitle += " ["; + aTitle += utl::Bootstrap::getBuildIdData(aDefault); aTitle += "]"; #endif diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index de1a340d69c4..ee4a779e01af 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -1001,13 +1001,13 @@ static void AddConversionsToDispatchList( if( !rParamOut.trim().isEmpty() ) { - aParam += OUString(";"); + aParam += ";"; aParam += aOutDir; } else { ::osl::FileBase::getSystemPathFromFileURL( aPWD, aPWD ); - aParam += OUString(";" ) + aPWD; + aParam += ";" + aPWD; } for (std::vector< OUString >::const_iterator i(rRequestList.begin()); diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 8908e6521f5d..1ad0b8f8cbbb 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -396,7 +396,7 @@ void BackendImpl::implProcessHelp( if( !xSFA->isFolder( aExpandedHelpURL ) ) { OUString aErrStr = getResourceString( RID_STR_HELPPROCESSING_GENERAL_ERROR ); - aErrStr += OUString("No help folder" ); + aErrStr += "No help folder"; OWeakObject* oWeakThis = static_cast(this); throw deployment::DeploymentException( OUString(), oWeakThis, makeAny( uno::Exception( aErrStr, oWeakThis ) ) ); @@ -439,9 +439,9 @@ void BackendImpl::implProcessHelp( aJarFile, rtl_UriCharClassPchar, rtl_UriEncodeIgnoreEscapes, RTL_TEXTENCODING_UTF8 ); - OUString aDestBasePath = OUString("vnd.sun.star.zip://" ); + OUString aDestBasePath = "vnd.sun.star.zip://"; aDestBasePath += aEncodedJarFilePath; - aDestBasePath += OUString("/" ); + aDestBasePath += "/" ; sal_Int32 nLenLangFolderURL = aLangURL.getLength() + 1; @@ -534,14 +534,14 @@ void BackendImpl::implProcessHelp( aErrStr += aErrMsg; if( nErrStrId == RID_STR_HELPPROCESSING_XMLPARSING_ERROR && !aErrorInfo.m_aXMLParsingFile.isEmpty() ) { - aErrStr += OUString(" in " ); + aErrStr += " in "; OUString aDecodedFile = rtl::Uri::decode( aErrorInfo.m_aXMLParsingFile, rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 ); aErrStr += aDecodedFile; if( aErrorInfo.m_nXMLParsingLine != -1 ) { - aErrStr += OUString(", line " ); + aErrStr += ", line "; aErrStr += OUString::number( aErrorInfo.m_nXMLParsingLine ); } } -- cgit