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 /stoc/test | |
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 'stoc/test')
-rw-r--r-- | stoc/test/registry_tdprovider/testregistrytdprovider.cxx | 4 | ||||
-rw-r--r-- | stoc/test/tdmanager/testtdmanager.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx b/stoc/test/registry_tdprovider/testregistrytdprovider.cxx index c3ffaf1ee73d..8038d6173be8 100644 --- a/stoc/test/registry_tdprovider/testregistrytdprovider.cxx +++ b/stoc/test/registry_tdprovider/testregistrytdprovider.cxx @@ -784,9 +784,7 @@ namespace { bool writeInfo(void * registryKey, OUString const & implementationName, css::uno::Sequence< OUString > const & serviceNames) { - OUString keyName("/"); - keyName += implementationName; - keyName += OUString("/UNO/SERVICES"); + OUString keyName = "/" + implementationName + "/UNO/SERVICES"; css::uno::Reference< css::registry::XRegistryKey > key; try { key = static_cast< css::registry::XRegistryKey * >(registryKey)-> diff --git a/stoc/test/tdmanager/testtdmanager.cxx b/stoc/test/tdmanager/testtdmanager.cxx index 31bf83c95bc7..aaacf910d461 100644 --- a/stoc/test/tdmanager/testtdmanager.cxx +++ b/stoc/test/tdmanager/testtdmanager.cxx @@ -303,9 +303,7 @@ namespace { bool writeInfo(void * registryKey, OUString const & implementationName, css::uno::Sequence< OUString > const & serviceNames) { - OUString keyName("/"); - keyName += implementationName; - keyName += OUString("/UNO/SERVICES"); + OUString keyName = "/" + implementationName + "/UNO/SERVICES"; css::uno::Reference< css::registry::XRegistryKey > key; try { key = static_cast< css::registry::XRegistryKey * >(registryKey)-> |