summaryrefslogtreecommitdiff
path: root/cppuhelper/source/implementationentry.cxx
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-10-22 21:58:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-23 10:44:09 +0200
commit1ed2c24a6e638ad7793c46427e4c49e42d435239 (patch)
treec1da9eb5d79baea4eb1e3bbf87e11407d8894076 /cppuhelper/source/implementationentry.cxx
parentcd7c0c6adfff3509630fda21d483c2cf5d76d275 (diff)
remove RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I0bce921bfc7102b9a33b1c87eee3ddec0ebaed7b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with one little typo fix
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();