diff options
Diffstat (limited to 'cppuhelper/test/testcmp')
-rw-r--r-- | cppuhelper/test/testcmp/TestComponent.cxx | 34 | ||||
-rw-r--r-- | cppuhelper/test/testcmp/TestComponent.hxx | 2 |
2 files changed, 18 insertions, 18 deletions
diff --git a/cppuhelper/test/testcmp/TestComponent.cxx b/cppuhelper/test/testcmp/TestComponent.cxx index 83bdac1a47a2..b8858f3329bd 100644 --- a/cppuhelper/test/testcmp/TestComponent.cxx +++ b/cppuhelper/test/testcmp/TestComponent.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 @@ -84,12 +84,12 @@ public: uno::Any SAL_CALL queryInterface(uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); void SAL_CALL release() throw (); void SAL_CALL acquire() throw (); - + // lang::XServiceInfo virtual rtl::OUString SAL_CALL getImplementationName() throw (uno::RuntimeException); virtual sal_Bool SAL_CALL supportsService(rtl::OUString const & ServiceName) throw (uno::RuntimeException); - virtual uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() + virtual uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException); protected: @@ -133,25 +133,25 @@ TestComponent::~TestComponent() LOG_LIFECYCLE_TestComponent_emit(fprintf(stderr, "LIFE: %s -> %p\n", "TestComponent::~TestComponent", this)); } -rtl::OUString SAL_CALL TestComponent::getImplementationName() +rtl::OUString SAL_CALL TestComponent::getImplementationName() throw (uno::RuntimeException) { return m_implName; } -void SAL_CALL TestComponent::acquire() throw () +void SAL_CALL TestComponent::acquire() throw () { - cppu::WeakImplHelper1<lang::XServiceInfo>::acquire(); -} + cppu::WeakImplHelper1<lang::XServiceInfo>::acquire(); +} -void SAL_CALL TestComponent::release() throw () +void SAL_CALL TestComponent::release() throw () { - cppu::WeakImplHelper1<lang::XServiceInfo>::release(); -} + cppu::WeakImplHelper1<lang::XServiceInfo>::release(); +} uno::Any SAL_CALL TestComponent::queryInterface(uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException) { - return cppu::WeakImplHelper1<lang::XServiceInfo>::queryInterface(rType); + return cppu::WeakImplHelper1<lang::XServiceInfo>::queryInterface(rType); } sal_Bool SAL_CALL TestComponent::supportsService(rtl::OUString const & ServiceName) @@ -168,14 +168,14 @@ sal_Bool SAL_CALL TestComponent::supportsService(rtl::OUString const & ServiceNa return false; } -uno::Sequence<rtl::OUString> SAL_CALL TestComponent::getSupportedServiceNames() +uno::Sequence<rtl::OUString> SAL_CALL TestComponent::getSupportedServiceNames() throw (uno::RuntimeException) { return getSupportedServiceNames_Static(); } extern "C" sal_Bool SAL_CALL component_writeInfo( - void * /*serviceManager*/, + void * /*serviceManager*/, void * /*registryKey*/ ) { @@ -185,8 +185,8 @@ extern "C" sal_Bool SAL_CALL component_writeInfo( } extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( - char const * pImplName, - void * /*serviceManager*/, + char const * pImplName, + void * /*serviceManager*/, void * /*registryKey*/ ) { @@ -213,7 +213,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( } extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironmentExt( - sal_Char const ** envTypeName, + sal_Char const ** envTypeName, uno_Environment ** /*ppEnv*/, sal_Char const * pImplName, uno_Environment * /*pSrcEnv*/ @@ -227,7 +227,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnviro purpose = rtl::OUStringToOString(cppu::EnvDcp::getPurpose(uImplName), RTL_TEXTENCODING_ASCII_US); } - if (!purpose.getLength()) + if (!purpose.getLength()) { char * pPurpose = getenv("TestComponent.uno"); if (pPurpose) diff --git a/cppuhelper/test/testcmp/TestComponent.hxx b/cppuhelper/test/testcmp/TestComponent.hxx index 7499628148f4..92824bd8acb6 100644 --- a/cppuhelper/test/testcmp/TestComponent.hxx +++ b/cppuhelper/test/testcmp/TestComponent.hxx @@ -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 |