summaryrefslogtreecommitdiff
path: root/io/test/stm/testfactreg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/test/stm/testfactreg.cxx')
-rw-r--r--io/test/stm/testfactreg.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/io/test/stm/testfactreg.cxx b/io/test/stm/testfactreg.cxx
index 05aaa92b1c34..4cd7c1d2b970 100644
--- a/io/test/stm/testfactreg.cxx
+++ b/io/test/stm/testfactreg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <osl/diagnose.h>
-#include <cppuhelper/factory.hxx> // for EXTERN_SERVICE_CALLTYPE
+#include <cppuhelper/factory.hxx> // for EXTERN_SERVICE_CALLTYPE
using namespace ::rtl;
using namespace ::cppu;
@@ -75,49 +75,49 @@ sal_Bool SAL_CALL component_writeInfo(
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OPumpTest_getServiceName() );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
ODataStreamTest_getImplementationName(1) +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( ODataStreamTest_getServiceName(1) );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
ODataStreamTest_getImplementationName(2) +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( ODataStreamTest_getServiceName(2) );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OObjectStreamTest_getImplementationName(1) +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OObjectStreamTest_getServiceName(1) );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OObjectStreamTest_getImplementationName(2) +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OObjectStreamTest_getServiceName(2) );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OMarkableOutputStreamTest_getImplementationName() +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OMarkableOutputStreamTest_getServiceName() );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OMarkableInputStreamTest_getImplementationName() +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OMarkableInputStreamTest_getServiceName() );
-
+
str = OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OMyPersistObject_getImplementationName() +
OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OMyPersistObject_getServiceName() );
-
+
return sal_True;
}
catch (InvalidRegistryException &)
@@ -132,13 +132,13 @@ void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
void * pRet = 0;
-
+
if (pServiceManager )
{
Reference< XSingleServiceFactory > xRet;
Reference< XMultiServiceFactory > xSMgr =
reinterpret_cast< XMultiServiceFactory * > ( pServiceManager );
-
+
OUString aImplementationName = OUString::createFromAscii( pImplName );
if (aImplementationName == OPipeTest_getImplementationName() )
@@ -153,41 +153,41 @@ void * SAL_CALL component_getFactory(
OPumpTest_CreateInstance,
OPumpTest_getSupportedServiceNames() );
}
-
+
else if( aImplementationName == ODataStreamTest_getImplementationName(1) ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
ODataStreamTest_CreateInstance,
- ODataStreamTest_getSupportedServiceNames(1) );
+ ODataStreamTest_getSupportedServiceNames(1) );
}
else if( aImplementationName == ODataStreamTest_getImplementationName(2) ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
ODataStreamTest_CreateInstance,
- ODataStreamTest_getSupportedServiceNames(2) );
+ ODataStreamTest_getSupportedServiceNames(2) );
}
else if( aImplementationName == OObjectStreamTest_getImplementationName(1) ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
OObjectStreamTest_CreateInstance,
- OObjectStreamTest_getSupportedServiceNames(1) );
+ OObjectStreamTest_getSupportedServiceNames(1) );
}
else if( aImplementationName == OObjectStreamTest_getImplementationName(2) ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
OObjectStreamTest_CreateInstance,
- OObjectStreamTest_getSupportedServiceNames(2) );
+ OObjectStreamTest_getSupportedServiceNames(2) );
}
else if( aImplementationName == OMarkableOutputStreamTest_getImplementationName() ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
OMarkableOutputStreamTest_CreateInstance,
- OMarkableOutputStreamTest_getSupportedServiceNames() );
+ OMarkableOutputStreamTest_getSupportedServiceNames() );
}
else if( aImplementationName == OMarkableInputStreamTest_getImplementationName() ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
OMarkableInputStreamTest_CreateInstance,
- OMarkableInputStreamTest_getSupportedServiceNames() );
+ OMarkableInputStreamTest_getSupportedServiceNames() );
}
else if( aImplementationName == OMyPersistObject_getImplementationName() ) {
xRet = createSingleFactory( xSMgr , aImplementationName,
OMyPersistObject_CreateInstance,
- OMyPersistObject_getSupportedServiceNames() );
+ OMyPersistObject_getSupportedServiceNames() );
}
if (xRet.is())
{
@@ -195,7 +195,7 @@ void * SAL_CALL component_getFactory(
pRet = xRet.get();
}
}
-
+
return pRet;
}
@@ -208,7 +208,7 @@ Sequence<sal_Int8 > createSeq( char * p )
return seq;
}
-Sequence<sal_Int8> createIntSeq( sal_Int32 i )
+Sequence<sal_Int8> createIntSeq( sal_Int32 i )
{
char pcCount[20];
sprintf( pcCount , "%d" , i );