diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-09-11 12:51:37 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-09-11 12:51:37 +0000 |
commit | 1355bf7192f0135ea9cc92018563e2d5465bf789 (patch) | |
tree | 630ba938f0cc3e248796204542f8c871fe2aea1b /cppuhelper | |
parent | 6f81f4bc8e2ab90467754be54d18eddb7ba0e00f (diff) |
#92075#: exception specifications
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 17 | ||||
-rw-r--r-- | cppuhelper/source/stdidlclass.cxx | 8 |
2 files changed, 13 insertions, 12 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index b786dba4cafb..f3f83107f1a6 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: propshlp.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: pl $ $Date: 2001-05-10 20:24:59 $ + * last change: $Author: hr $ $Date: 2001-09-11 13:45:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -115,9 +115,9 @@ public: OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ ) SAL_THROW( () ); // XPropertySetInfo-Methoden - virtual Sequence< Property > SAL_CALL getProperties(void); - virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName); - virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName); + virtual Sequence< Property > SAL_CALL getProperties(void) throw(::com::sun::star::uno::RuntimeException); + virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(::com::sun::star::uno::RuntimeException); }; @@ -134,7 +134,8 @@ OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl( /** * Return the sequence of properties, which are provided throug the constructor. */ -Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) +Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::com::sun::star::uno::RuntimeException) + { return aInfos; } @@ -142,7 +143,7 @@ Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) /** * Return the sequence of properties, which are provided throug the constructor. */ -Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) +Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) { Property * pR; pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(), @@ -158,7 +159,7 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper /** * Return the sequence of properties, which are provided throug the constructor. */ -sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) +sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::uno::RuntimeException) { Property * pR; pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(), diff --git a/cppuhelper/source/stdidlclass.cxx b/cppuhelper/source/stdidlclass.cxx index ea056826a0e5..16a293ff38b6 100644 --- a/cppuhelper/source/stdidlclass.cxx +++ b/cppuhelper/source/stdidlclass.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stdidlclass.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2001-03-09 12:15:28 $ + * last change: $Author: hr $ $Date: 2001-09-11 13:45:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -94,8 +94,8 @@ public: Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); - void SAL_CALL acquire() { OWeakObject::acquire(); } - void SAL_CALL release() { OWeakObject::release(); } + void SAL_CALL acquire() throw() { OWeakObject::acquire(); } + void SAL_CALL release() throw() { OWeakObject::release(); } // XIdlClassProvider Sequence< Reference < XIdlClass > > SAL_CALL getIdlClasses(void) |