diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-13 09:29:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-17 11:49:03 +0200 |
commit | 08fe82e59cbc598d2683d72877653316c1e41962 (patch) | |
tree | 5eeace3006ef2bfd58a5d97a000f336b8b06099c /stoc | |
parent | should be a l10n target (diff) | |
download | core-08fe82e59cbc598d2683d72877653316c1e41962.tar.gz core-08fe82e59cbc598d2683d72877653316c1e41962.zip |
Remove unnecessary use of OUString constructor in + expressions
Convert code like
aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp");
to
aFilename = OUString::number(nFilePostfixCount) + ".bmp";
Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/defaultregistry/defaultregistry.cxx | 6 | ||||
-rw-r--r-- | stoc/source/implementationregistration/implreg.cxx | 2 | ||||
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 4 | ||||
-rw-r--r-- | stoc/test/testintrosp.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index d6e5dbed98dd..cf41a8d5327d 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -987,7 +987,7 @@ sal_Bool SAL_CALL NestedKeyImpl::createLink( const OUString& aLinkName, const OU if ( lastIndex == 0 ) resolvedName = m_name + aLinkName; else - resolvedName = m_name + OUString( "/" ) + aLinkName; + resolvedName = m_name + "/" + aLinkName; } if ( m_localKey.is() && m_localKey->isValid() ) @@ -1043,7 +1043,7 @@ void SAL_CALL NestedKeyImpl::deleteLink( const OUString& rLinkName ) if ( lastIndex == 0 ) resolvedName = m_name + rLinkName; else - resolvedName = m_name + OUString( "/" ) + rLinkName; + resolvedName = m_name + "/" + rLinkName; } if ( m_localKey.is() && m_localKey->isValid() && @@ -1089,7 +1089,7 @@ OUString SAL_CALL NestedKeyImpl::getLinkTarget( const OUString& rLinkName ) if ( lastIndex == 0 ) resolvedName = m_name + rLinkName; else - resolvedName = m_name + OUString( "/" ) + rLinkName; + resolvedName = m_name + "/" + rLinkName; } OUString linkTarget; diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 0f9ce337503d..66626a8eb9c4 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -640,7 +640,7 @@ static void prepareUserKeys(const Reference < XSimpleRegistry >& xDest, OUString linkTarget = xKey->getLinkTarget(relativKey); OUString linkName(xKey->getKeyName().copy(xUnoKey->getKeyName().getLength())); - linkName = linkName + OUString("/") + relativKey; + linkName = linkName + "/" + relativKey; if (bRegister) { diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index b1cbf953b77c..735cabfee01b 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -466,9 +466,9 @@ void getJavaPropsFromSafetySettings( sal_Bool val= (sal_Bool) key_CheckSecurity->getLongValue(); OUString sProperty("stardiv.security.disableSecurity="); if( val) - sProperty= sProperty + OUString("false"); + sProperty= sProperty + "false"; else - sProperty= sProperty + OUString("true"); + sProperty= sProperty + "true"; pjvm->pushProp( sProperty); } } diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx index a9a68f89397d..89c884c97bc6 100644 --- a/stoc/test/testintrosp.cxx +++ b/stoc/test/testintrosp.cxx @@ -969,7 +969,7 @@ static sal_Bool test_introsp( Reference< XMultiServiceFactory > xMgr, { OUString aStr; aPropVal >>= aStr; - aStr = aStr + OUString(" (Modified!)"); + aStr += " (Modified!)"; aNewVal <<= aStr; break; } |