diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:17:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:07 +0200 |
commit | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (patch) | |
tree | 5a36bcd5af873c2b597fcda5fbd7e2f76f997669 /desktop | |
parent | 57c2de08ddf14c0da80de06736d99382ad036539 (diff) |
remove redundant calls to OUString constructor
Change code like this:
aStr = OUString("xxxx");
into this:
aStr = "xxxx";
Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 5 | ||||
-rw-r--r-- | desktop/source/app/officeipcthread.cxx | 4 | ||||
-rw-r--r-- | desktop/source/deployment/registry/help/dp_help.cxx | 10 |
3 files changed, 9 insertions, 10 deletions
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<OWeakObject *>(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 ); } } |