Kaydet (Commit) 17199076 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

com::sun::star-css in cppu,cppuhelper

Change-Id: I84a412f587fd66f6c0610f083e61cf0fa079d4d9
Reviewed-on: https://gerrit.libreoffice.org/17384Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 62e2fae9
...@@ -369,7 +369,7 @@ namespace com { namespace sun { namespace star { namespace uno { ...@@ -369,7 +369,7 @@ namespace com { namespace sun { namespace star { namespace uno {
std::ostream & operator <<( std::ostream & operator <<(
std::ostream & out, std::ostream & out,
SAL_UNUSED_PARAMETER com::sun::star::uno::Exception const &) SAL_UNUSED_PARAMETER css::uno::Exception const &)
{ {
return out << "<UNO exception>"; return out << "<UNO exception>";
} }
...@@ -442,7 +442,7 @@ void Test::testBigStruct() { ...@@ -442,7 +442,7 @@ void Test::testBigStruct() {
CPPUNIT_ASSERT_EQUAL(guard.p->m11, static_cast< sal_Unicode >(0)); CPPUNIT_ASSERT_EQUAL(guard.p->m11, static_cast< sal_Unicode >(0));
CPPUNIT_ASSERT_EQUAL(guard.p->m12.getLength(), static_cast< sal_Int32 >(0)); CPPUNIT_ASSERT_EQUAL(guard.p->m12.getLength(), static_cast< sal_Int32 >(0));
CPPUNIT_ASSERT_EQUAL( CPPUNIT_ASSERT_EQUAL(
+guard.p->m13.getTypeClass(), +com::sun::star::uno::TypeClass_VOID); +guard.p->m13.getTypeClass(), +css::uno::TypeClass_VOID);
CPPUNIT_ASSERT_EQUAL(guard.p->m14.hasValue(), false); CPPUNIT_ASSERT_EQUAL(guard.p->m14.hasValue(), false);
CPPUNIT_ASSERT_EQUAL(guard.p->m15.getLength(), static_cast< sal_Int32 >(0)); CPPUNIT_ASSERT_EQUAL(guard.p->m15.getLength(), static_cast< sal_Int32 >(0));
CPPUNIT_ASSERT_EQUAL( CPPUNIT_ASSERT_EQUAL(
...@@ -470,7 +470,7 @@ void Test::testBigStruct() { ...@@ -470,7 +470,7 @@ void Test::testBigStruct() {
#endif #endif
#endif #endif
com::sun::star::uno::Type t( css::uno::Type t(
cppu::UnoType< test::codemaker::cppumaker::BigStruct >::get()); cppu::UnoType< test::codemaker::cppumaker::BigStruct >::get());
typelib_TypeDescription * td = NULL; typelib_TypeDescription * td = NULL;
t.getDescription(&td); t.getDescription(&td);
...@@ -488,11 +488,11 @@ void Test::testPolyStruct() { ...@@ -488,11 +488,11 @@ void Test::testPolyStruct() {
CPPUNIT_ASSERT_EQUAL( CPPUNIT_ASSERT_EQUAL(
rtl::OUString( rtl::OUString(
"test.codemaker.cppumaker.Struct<char,short>"), "test.codemaker.cppumaker.Struct<char,short>"),
(com::sun::star::uno::makeAny( (css::uno::makeAny(
test::codemaker::cppumaker::Struct< sal_Unicode, sal_Int16 >()). test::codemaker::cppumaker::Struct< sal_Unicode, sal_Int16 >()).
getValueType().getTypeName())); getValueType().getTypeName()));
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > css::uno::Sequence< css::uno::Sequence< css::uno::Any > >
aEmptySequence; aEmptySequence;
CPPUNIT_ASSERT_EQUAL( CPPUNIT_ASSERT_EQUAL(
...@@ -502,12 +502,12 @@ void Test::testPolyStruct() { ...@@ -502,12 +502,12 @@ void Test::testPolyStruct() {
} }
void Test::testExceptions() { void Test::testExceptions() {
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > css::uno::Sequence< css::uno::Sequence< css::uno::Any > >
aEmptySequence; aEmptySequence;
test::codemaker::cppumaker::TestException1 e11( test::codemaker::cppumaker::TestException1 e11(
rtl::OUString("abc"), 0, 1, rtl::OUString("abc"), 0, 1,
com::sun::star::uno::makeAny(123.0), css::uno::makeAny(123.0),
test::codemaker::cppumaker::HelperEnum_ONE, test::codemaker::cppumaker::HelperEnum_ONE,
test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2); test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2);
test::codemaker::cppumaker::TestException1 e12(e11); test::codemaker::cppumaker::TestException1 e12(e11);
...@@ -517,7 +517,7 @@ void Test::testExceptions() { ...@@ -517,7 +517,7 @@ void Test::testExceptions() {
CPPUNIT_ASSERT_EQUAL(e11, e13); CPPUNIT_ASSERT_EQUAL(e11, e13);
test::codemaker::cppumaker::TestException2 e21( test::codemaker::cppumaker::TestException2 e21(
rtl::OUString("abc"), 0, 1, rtl::OUString("abc"), 0, 1,
com::sun::star::uno::makeAny(123.0), css::uno::makeAny(123.0),
test::codemaker::cppumaker::HelperEnum_ONE, test::codemaker::cppumaker::HelperEnum_ONE,
test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2); test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2);
test::codemaker::cppumaker::TestException2 e22(e21); test::codemaker::cppumaker::TestException2 e22(e21);
......
...@@ -169,7 +169,7 @@ bool LogBridge::v_isValid(rtl::OUString * pReason) ...@@ -169,7 +169,7 @@ bool LogBridge::v_isValid(rtl::OUString * pReason)
break; break;
case typelib_TypeClass_TYPE: case typelib_TypeClass_TYPE:
{ {
const ::rtl::OString sValue( ::rtl::OUStringToOString(static_cast<com::sun::star::uno::Type*>(pArg)->getTypeName(),osl_getThreadTextEncoding())); const ::rtl::OString sValue( ::rtl::OUStringToOString(static_cast<css::uno::Type*>(pArg)->getTypeName(),osl_getThreadTextEncoding()));
SAL_INFO("cppu.log", "" << sValue.getStr()); SAL_INFO("cppu.log", "" << sValue.getStr());
} }
break; break;
......
...@@ -26,7 +26,7 @@ namespace com { namespace sun { namespace star { namespace uno { ...@@ -26,7 +26,7 @@ namespace com { namespace sun { namespace star { namespace uno {
class Environment; class Environment;
}}}} }}}}
uno_Mapping * createIdentityMapping(const ::com::sun::star::uno::Environment & rEnv); uno_Mapping * createIdentityMapping(const css::uno::Environment & rEnv);
#endif #endif
......
...@@ -90,7 +90,7 @@ void OComponentHelper::release() throw() ...@@ -90,7 +90,7 @@ void OComponentHelper::release() throw()
{ {
dispose(); dispose();
} }
catch (::com::sun::star::uno::RuntimeException & exc) catch (css::uno::RuntimeException & exc)
{ {
// release should not throw exceptions // release should not throw exceptions
#if OSL_DEBUG_LEVEL > 0 #if OSL_DEBUG_LEVEL > 0
...@@ -139,7 +139,7 @@ void OComponentHelper::disposing() ...@@ -139,7 +139,7 @@ void OComponentHelper::disposing()
// XComponent // XComponent
void OComponentHelper::dispose() void OComponentHelper::dispose()
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
// An frequently programming error is to release the last // An frequently programming error is to release the last
// reference to this object in the disposing message. // reference to this object in the disposing message.
...@@ -212,7 +212,7 @@ void OComponentHelper::dispose() ...@@ -212,7 +212,7 @@ void OComponentHelper::dispose()
// XComponent // XComponent
void OComponentHelper::addEventListener( void OComponentHelper::addEventListener(
const Reference<XEventListener > & rxListener ) const Reference<XEventListener > & rxListener )
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
ClearableMutexGuard aGuard( rBHelper.rMutex ); ClearableMutexGuard aGuard( rBHelper.rMutex );
if (rBHelper.bDisposed || rBHelper.bInDispose) if (rBHelper.bDisposed || rBHelper.bInDispose)
...@@ -230,7 +230,7 @@ void OComponentHelper::addEventListener( ...@@ -230,7 +230,7 @@ void OComponentHelper::addEventListener(
// XComponent // XComponent
void OComponentHelper::removeEventListener( void OComponentHelper::removeEventListener(
const Reference<XEventListener > & rxListener ) const Reference<XEventListener > & rxListener )
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
rBHelper.removeListener( cppu::UnoType<decltype(rxListener)>::get(), rxListener ); rBHelper.removeListener( cppu::UnoType<decltype(rxListener)>::get(), rxListener );
} }
......
This diff is collapsed.
...@@ -370,7 +370,7 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const ...@@ -370,7 +370,7 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const
nSize = pMap->size(); nSize = pMap->size();
if( nSize ) if( nSize )
{ {
::com::sun::star::uno::Sequence< Type > aInterfaceTypes( nSize ); css::uno::Sequence< Type > aInterfaceTypes( nSize );
Type * pArray = aInterfaceTypes.getArray(); Type * pArray = aInterfaceTypes.getArray();
t_type2ptr::iterator iter = pMap->begin(); t_type2ptr::iterator iter = pMap->begin();
...@@ -387,11 +387,11 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const ...@@ -387,11 +387,11 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const
} }
if( (t_type2ptr::size_type)i != nSize ) { if( (t_type2ptr::size_type)i != nSize ) {
// may be empty container, reduce the sequence to the right size // may be empty container, reduce the sequence to the right size
aInterfaceTypes = ::com::sun::star::uno::Sequence< Type >( pArray, i ); aInterfaceTypes = css::uno::Sequence< Type >( pArray, i );
} }
return aInterfaceTypes; return aInterfaceTypes;
} }
return ::com::sun::star::uno::Sequence< Type >(); return css::uno::Sequence< Type >();
} }
static t_type2ptr::iterator findType(t_type2ptr *pMap, const Type & rKey ) static t_type2ptr::iterator findType(t_type2ptr *pMap, const Type & rKey )
...@@ -552,7 +552,7 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes ...@@ -552,7 +552,7 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes
nSize = pMap ? pMap->size() : 0; nSize = pMap ? pMap->size() : 0;
if( nSize ) if( nSize )
{ {
::com::sun::star::uno::Sequence< sal_Int32 > aInterfaceTypes( nSize ); css::uno::Sequence< sal_Int32 > aInterfaceTypes( nSize );
sal_Int32 * pArray = aInterfaceTypes.getArray(); sal_Int32 * pArray = aInterfaceTypes.getArray();
t_long2ptr::iterator iter = pMap->begin(); t_long2ptr::iterator iter = pMap->begin();
...@@ -569,11 +569,11 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes ...@@ -569,11 +569,11 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes
} }
if( (t_long2ptr::size_type)i != nSize ) { if( (t_long2ptr::size_type)i != nSize ) {
// may be empty container, reduce the sequence to the right size // may be empty container, reduce the sequence to the right size
aInterfaceTypes = ::com::sun::star::uno::Sequence< sal_Int32 >( pArray, i ); aInterfaceTypes = css::uno::Sequence< sal_Int32 >( pArray, i );
} }
return aInterfaceTypes; return aInterfaceTypes;
} }
return ::com::sun::star::uno::Sequence< sal_Int32 >(); return css::uno::Sequence< sal_Int32 >();
} }
OInterfaceContainerHelper * OMultiTypeInterfaceContainerHelperInt32::getContainer( const sal_Int32 & rKey ) const OInterfaceContainerHelper * OMultiTypeInterfaceContainerHelperInt32::getContainer( const sal_Int32 & rKey ) const
......
...@@ -51,7 +51,7 @@ namespace detail { ...@@ -51,7 +51,7 @@ namespace detail {
*/ */
::rtl::OUString expandMacros(rtl::OUString const & text); ::rtl::OUString expandMacros(rtl::OUString const & text);
com::sun::star::uno::Reference< com::sun::star::lang::XSingleComponentFactory > css::uno::Reference< css::lang::XSingleComponentFactory >
create_bootstrap_macro_expander_factory(); create_bootstrap_macro_expander_factory();
} }
......
This diff is collapsed.
...@@ -58,17 +58,17 @@ public: ...@@ -58,17 +58,17 @@ public:
{} {}
// XInterface // XInterface
Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; Any SAL_CALL queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
void SAL_CALL acquire() throw() SAL_OVERRIDE; void SAL_CALL acquire() throw() SAL_OVERRIDE;
void SAL_CALL release() throw() SAL_OVERRIDE; void SAL_CALL release() throw() SAL_OVERRIDE;
// XAdapter // XAdapter
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL queryAdapted() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::uno::Reference< css::uno::XInterface > SAL_CALL queryAdapted() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
void SAL_CALL addReference( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XReference >& xRef ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL addReference( const css::uno::Reference< css::uno::XReference >& xRef ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
void SAL_CALL removeReference( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XReference >& xRef ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL removeReference( const css::uno::Reference< css::uno::XReference >& xRef ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
/// Called from the weak object if the reference count goes to zero. /// Called from the weak object if the reference count goes to zero.
void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException); void SAL_CALL dispose() throw(css::uno::RuntimeException);
private: private:
virtual ~OWeakConnectionPoint() {} virtual ~OWeakConnectionPoint() {}
...@@ -83,7 +83,7 @@ private: ...@@ -83,7 +83,7 @@ private:
// XInterface // XInterface
Any SAL_CALL OWeakConnectionPoint::queryInterface( const Type & rType ) Any SAL_CALL OWeakConnectionPoint::queryInterface( const Type & rType )
throw(com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
return ::cppu::queryInterface( return ::cppu::queryInterface(
rType, static_cast< XAdapter * >( this ), static_cast< XInterface * >( this ) ); rType, static_cast< XAdapter * >( this ), static_cast< XInterface * >( this ) );
...@@ -102,7 +102,7 @@ void SAL_CALL OWeakConnectionPoint::release() throw() ...@@ -102,7 +102,7 @@ void SAL_CALL OWeakConnectionPoint::release() throw()
delete this; delete this;
} }
void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::RuntimeException) void SAL_CALL OWeakConnectionPoint::dispose() throw(css::uno::RuntimeException)
{ {
Any ex; Any ex;
OInterfaceIteratorHelper aIt( m_aReferences ); OInterfaceIteratorHelper aIt( m_aReferences );
...@@ -112,7 +112,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti ...@@ -112,7 +112,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti
{ {
static_cast<XReference *>(aIt.next())->dispose(); static_cast<XReference *>(aIt.next())->dispose();
} }
catch (com::sun::star::lang::DisposedException &) {} catch (css::lang::DisposedException &) {}
catch (RuntimeException &) catch (RuntimeException &)
{ {
ex = cppu::getCaughtException(); ex = cppu::getCaughtException();
...@@ -125,7 +125,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti ...@@ -125,7 +125,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti
} }
// XInterface // XInterface
Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(::com::sun::star::uno::RuntimeException, std::exception) Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(css::uno::RuntimeException, std::exception)
{ {
Reference< XInterface > ret; Reference< XInterface > ret;
...@@ -154,14 +154,14 @@ Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(::co ...@@ -154,14 +154,14 @@ Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(::co
// XInterface // XInterface
void SAL_CALL OWeakConnectionPoint::addReference(const Reference< XReference >& rRef) void SAL_CALL OWeakConnectionPoint::addReference(const Reference< XReference >& rRef)
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
m_aReferences.addInterface( (const Reference< XInterface > &)rRef ); m_aReferences.addInterface( (const Reference< XInterface > &)rRef );
} }
// XInterface // XInterface
void SAL_CALL OWeakConnectionPoint::removeReference(const Reference< XReference >& rRef) void SAL_CALL OWeakConnectionPoint::removeReference(const Reference< XReference >& rRef)
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
m_aReferences.removeInterface( (const Reference< XInterface > &)rRef ); m_aReferences.removeInterface( (const Reference< XInterface > &)rRef );
} }
...@@ -181,7 +181,7 @@ OWeakObject::OWeakObject() ...@@ -181,7 +181,7 @@ OWeakObject::OWeakObject()
#endif #endif
// XInterface // XInterface
Any SAL_CALL OWeakObject::queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) Any SAL_CALL OWeakObject::queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
{ {
return ::cppu::queryInterface( return ::cppu::queryInterface(
rType, rType,
...@@ -231,7 +231,7 @@ OWeakObject::~OWeakObject() ...@@ -231,7 +231,7 @@ OWeakObject::~OWeakObject()
// XWeak // XWeak
Reference< XAdapter > SAL_CALL OWeakObject::queryAdapter() Reference< XAdapter > SAL_CALL OWeakObject::queryAdapter()
throw (::com::sun::star::uno::RuntimeException, std::exception) throw (css::uno::RuntimeException, std::exception)
{ {
if (!m_pWeakConnectionPoint) if (!m_pWeakConnectionPoint)
{ {
...@@ -276,14 +276,14 @@ void OWeakAggObject::release() throw() ...@@ -276,14 +276,14 @@ void OWeakAggObject::release() throw()
} }
// XInterface // XInterface
Any OWeakAggObject::queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) Any OWeakAggObject::queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
{ {
Reference< XInterface > x( xDelegator ); // harden ref Reference< XInterface > x( xDelegator ); // harden ref
return (x.is() ? x->queryInterface( rType ) : queryAggregation( rType )); return (x.is() ? x->queryInterface( rType ) : queryAggregation( rType ));
} }
// XAggregation // XAggregation
Any OWeakAggObject::queryAggregation( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) Any OWeakAggObject::queryAggregation( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
{ {
return ::cppu::queryInterface( return ::cppu::queryInterface(
rType, rType,
...@@ -293,7 +293,7 @@ Any OWeakAggObject::queryAggregation( const Type & rType ) throw(::com::sun::sta ...@@ -293,7 +293,7 @@ Any OWeakAggObject::queryAggregation( const Type & rType ) throw(::com::sun::sta
} }
// XAggregation // XAggregation
void OWeakAggObject::setDelegator( const Reference<XInterface > & rDelegator ) throw(::com::sun::star::uno::RuntimeException, std::exception) void OWeakAggObject::setDelegator( const Reference<XInterface > & rDelegator ) throw(css::uno::RuntimeException, std::exception)
{ {
xDelegator = rDelegator; xDelegator = rDelegator;
} }
...@@ -329,7 +329,7 @@ public: ...@@ -329,7 +329,7 @@ public:
void SAL_CALL release() throw() SAL_OVERRIDE; void SAL_CALL release() throw() SAL_OVERRIDE;
// XReference // XReference
void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL dispose() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
/// The reference counter. /// The reference counter.
oslInterlockedCount m_aRefCount; oslInterlockedCount m_aRefCount;
...@@ -392,7 +392,7 @@ void SAL_CALL OWeakRefListener::release() throw() ...@@ -392,7 +392,7 @@ void SAL_CALL OWeakRefListener::release() throw()
} }
void SAL_CALL OWeakRefListener::dispose() void SAL_CALL OWeakRefListener::dispose()
throw(::com::sun::star::uno::RuntimeException, std::exception) throw(css::uno::RuntimeException, std::exception)
{ {
Reference< XAdapter > xAdp; Reference< XAdapter > xAdp;
{ {
......
...@@ -129,19 +129,19 @@ void ServiceImpl0::initialize( const Sequence< Any >& rArgs ) ...@@ -129,19 +129,19 @@ void ServiceImpl0::initialize( const Sequence< Any >& rArgs )
// XServiceInfo // XServiceInfo
OUString ServiceImpl0::getImplementationName() OUString ServiceImpl0::getImplementationName()
throw(::com::sun::star::uno::RuntimeException) throw(css::uno::RuntimeException)
{ {
return impl0_getImplementationName(); return impl0_getImplementationName();
} }
Sequence< OUString > ServiceImpl0::getSupportedServiceNames() Sequence< OUString > ServiceImpl0::getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException) throw(css::uno::RuntimeException)
{ {
return impl0_getSupportedServiceNames(); return impl0_getSupportedServiceNames();
} }
sal_Bool ServiceImpl0::supportsService( const OUString & rServiceName ) sal_Bool ServiceImpl0::supportsService( const OUString & rServiceName )
throw(::com::sun::star::uno::RuntimeException) throw(css::uno::RuntimeException)
{ {
return cppu::supportsService(this, rServiceName); return cppu::supportsService(this, rServiceName);
} }
...@@ -161,13 +161,13 @@ public: ...@@ -161,13 +161,13 @@ public:
}; };
OUString ServiceImpl1::getImplementationName() OUString ServiceImpl1::getImplementationName()
throw(::com::sun::star::uno::RuntimeException) throw(css::uno::RuntimeException)
{ {
return impl1_getImplementationName(); return impl1_getImplementationName();
} }
Sequence< OUString > ServiceImpl1::getSupportedServiceNames() Sequence< OUString > ServiceImpl1::getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException) throw(css::uno::RuntimeException)
{ {
return impl1_getSupportedServiceNames(); return impl1_getSupportedServiceNames();
} }
......
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
explicit TestComponent(uno::Reference<uno::XComponentContext> const & xCtx); explicit TestComponent(uno::Reference<uno::XComponentContext> const & xCtx);
virtual ~TestComponent(); virtual ~TestComponent();
uno::Any SAL_CALL queryInterface(uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException); uno::Any SAL_CALL queryInterface(uno::Type const & rType ) throw (css::uno::RuntimeException);
void SAL_CALL release() throw (); void SAL_CALL release() throw ();
void SAL_CALL acquire() throw (); void SAL_CALL acquire() throw ();
...@@ -136,7 +136,7 @@ void SAL_CALL TestComponent::release() throw () ...@@ -136,7 +136,7 @@ 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) uno::Any SAL_CALL TestComponent::queryInterface(uno::Type const & rType ) throw (css::uno::RuntimeException)
{ {
return cppu::WeakImplHelper1<lang::XServiceInfo>::queryInterface(rType); return cppu::WeakImplHelper1<lang::XServiceInfo>::queryInterface(rType);
} }
......
...@@ -35,13 +35,13 @@ class TestListener : public WeakImplHelper1< XVetoableChangeListener > ...@@ -35,13 +35,13 @@ class TestListener : public WeakImplHelper1< XVetoableChangeListener >
{ {
public: public:
// Methods // Methods
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& /*Source*/ ) throw(::com::sun::star::uno::RuntimeException) virtual void SAL_CALL disposing( const css::lang::EventObject& /*Source*/ ) throw(css::uno::RuntimeException)
{ {
} }
virtual void SAL_CALL vetoableChange( const ::com::sun::star::beans::PropertyChangeEvent& /*aEvent*/ ) virtual void SAL_CALL vetoableChange( const css::beans::PropertyChangeEvent& /*aEvent*/ )
throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException) throw(css::beans::PropertyVetoException, css::uno::RuntimeException)
{ {
} }
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#ifndef INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX #ifndef INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX
#define INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX #define INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX
void testidlclass( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > &r); void testidlclass( const css::uno::Reference < css::lang::XMultiServiceFactory > &r);
void testPropertyTypeHelper(); void testPropertyTypeHelper();
void test_PropertySetHelper(); void test_PropertySetHelper();
void test_ImplHelper( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > & xSF ); void test_ImplHelper( const css::uno::Reference < css::lang::XMultiServiceFactory > & xSF );
void test_interfacecontainer(); void test_interfacecontainer();
#endif // INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX #endif // INCLUDED_CPPUHELPER_TEST_TESTHELPER_HXX
......
...@@ -353,7 +353,7 @@ public: ...@@ -353,7 +353,7 @@ public:
} }
// XInterface // XInterface
Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(RuntimeException) Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(RuntimeException)
{ {
Any aRet( OPropertySetHelper::queryInterface( rType ) ); Any aRet( OPropertySetHelper::queryInterface( rType ) );
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
......
...@@ -54,7 +54,7 @@ void testPropertyTypeHelper() ...@@ -54,7 +54,7 @@ void testPropertyTypeHelper()
convertPropertyValue( f , a ); convertPropertyValue( f , a );
OSL_ASSERT( 25. == f ); OSL_ASSERT( 25. == f );
::com::sun::star::beans::Property prop; css::beans::Property prop;
prop.Name = rtl::OUString("Huhu"); prop.Name = rtl::OUString("Huhu");
prop.Handle = 5; prop.Handle = 5;
...@@ -62,7 +62,7 @@ void testPropertyTypeHelper() ...@@ -62,7 +62,7 @@ void testPropertyTypeHelper()
a <<= prop; a <<= prop;
::com::sun::star::beans::Property prop2; css::beans::Property prop2;
convertPropertyValue( prop2 , a ); convertPropertyValue( prop2 , a );
OSL_ASSERT( prop.Handle == prop2.Handle && prop.Name == prop2.Name && prop.Attributes == prop2.Attributes ); OSL_ASSERT( prop.Handle == prop2.Handle && prop.Name == prop2.Name && prop.Attributes == prop2.Attributes );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment