diff options
Diffstat (limited to 'testtools/source/performance/ubobject.cxx')
-rw-r--r-- | testtools/source/performance/ubobject.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/testtools/source/performance/ubobject.cxx b/testtools/source/performance/ubobject.cxx index 15397de078d1..72bc8cc36c1c 100644 --- a/testtools/source/performance/ubobject.cxx +++ b/testtools/source/performance/ubobject.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 @@ -48,8 +48,8 @@ using namespace com::sun::star::lang; using namespace com::sun::star::registry; using namespace com::sun::star::test::performance; -#define SERVICENAME "com.sun.star.test.performance.PerformanceTestObject" -#define IMPLNAME "com.sun.star.comp.performance.PerformanceTestObject" +#define SERVICENAME "com.sun.star.test.performance.PerformanceTestObject" +#define IMPLNAME "com.sun.star.comp.performance.PerformanceTestObject" namespace benchmark_object { @@ -73,7 +73,7 @@ class ServiceImpl RuntimeException _aDummyRE; sal_Int32 _nRef; - + public: ServiceImpl() : _nRef( 0 ) @@ -81,7 +81,7 @@ public: ServiceImpl( const Reference< XMultiServiceFactory > & xMgr ) : _nRef( 0 ) {} - + // XInterface virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException) { @@ -108,7 +108,7 @@ public: { osl_incrementInterlockedCount( &_nRef ); } virtual void SAL_CALL release() throw() { if (! osl_decrementInterlockedCount( &_nRef )) delete this; } - + // XServiceInfo virtual OUString SAL_CALL getImplementationName() throw (RuntimeException); virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) throw (RuntimeException); @@ -151,8 +151,8 @@ public: { return _aDummyStruct; } virtual void SAL_CALL setStruct_attr( const ::com::sun::star::test::performance::ComplexTypes& _attributestruct ) throw(::com::sun::star::uno::RuntimeException) {} - - // Methods + + // Methods virtual sal_Int32 SAL_CALL getLong() throw(::com::sun::star::uno::RuntimeException) { return 0; } virtual void SAL_CALL setLong( sal_Int32 _long ) throw(::com::sun::star::uno::RuntimeException) @@ -184,12 +184,12 @@ public: virtual Sequence< Reference< XInterface > > SAL_CALL getSequence() throw(::com::sun::star::uno::RuntimeException) { return _aDummySequence; } virtual void SAL_CALL setSequence( const Sequence< Reference< XInterface > >& _sequence ) throw(::com::sun::star::uno::RuntimeException) - {} + {} virtual ComplexTypes SAL_CALL getStruct() throw(::com::sun::star::uno::RuntimeException) { return _aDummyStruct; } virtual void SAL_CALL setStruct( const ::com::sun::star::test::performance::ComplexTypes& c ) throw(::com::sun::star::uno::RuntimeException) {} - + virtual void SAL_CALL async() throw(::com::sun::star::uno::RuntimeException) {} virtual void SAL_CALL sync() throw(::com::sun::star::uno::RuntimeException) @@ -273,7 +273,7 @@ sal_Bool SAL_CALL component_writeInfo( reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM("/" IMPLNAME "/UNO/SERVICES") ) ) ); xNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM(SERVICENAME) ) ); - + return sal_True; } catch (InvalidRegistryException &) @@ -288,7 +288,7 @@ void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { void * pRet = 0; - + if (pServiceManager && rtl_str_compare( pImplName, IMPLNAME ) == 0) { Reference< XSingleServiceFactory > xFactory( createSingleFactory( @@ -296,14 +296,14 @@ void * SAL_CALL component_getFactory( OUString( RTL_CONSTASCII_USTRINGPARAM(IMPLNAME) ), benchmark_object::ServiceImpl_create, benchmark_object::getSupportedServiceNames() ) ); - + if (xFactory.is()) { xFactory->acquire(); pRet = xFactory.get(); } } - + return pRet; } } |