summaryrefslogtreecommitdiff
path: root/cppuhelper/source/implementationentry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/implementationentry.cxx')
-rw-r--r--cppuhelper/source/implementationentry.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/cppuhelper/source/implementationentry.cxx b/cppuhelper/source/implementationentry.cxx
index b6d9dd42c9b0..7a84d45ff8cd 100644
--- a/cppuhelper/source/implementationentry.cxx
+++ b/cppuhelper/source/implementationentry.cxx
@@ -18,14 +18,12 @@
*/
#include <cppuhelper/implementationentry.hxx>
-#include <rtl/ustrbuf.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
using rtl::OUString;
-using rtl::OUStringBuffer;
namespace cppu {
@@ -40,12 +38,9 @@ sal_Bool component_writeInfoHelper(
{
for( sal_Int32 i = 0; entries[i].create ; i ++ )
{
- OUStringBuffer buf( 124 );
- buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("/") );
- buf.append( entries[i].getImplementationName() );
- buf.appendAscii(RTL_CONSTASCII_STRINGPARAM( "/UNO/SERVICES" ) );
+ OUString sKey = "/" + entries[i].getImplementationName() + "/UNO/SERVICES";
Reference< XRegistryKey > xNewKey(
- reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( buf.makeStringAndClear() ) );
+ reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( sKey ) );
Sequence< OUString > seq = entries[i].getSupportedServiceNames();
const OUString *pArray = seq.getConstArray();