diff options
Diffstat (limited to 'stoc')
-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)-> |