summaryrefslogtreecommitdiff
path: root/unotools/source/accessibility/accessiblerelationsethelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/accessibility/accessiblerelationsethelper.cxx')
-rw-r--r--unotools/source/accessibility/accessiblerelationsethelper.cxx30
1 files changed, 5 insertions, 25 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx
index e25719c8bb2c..1a59cea8e844 100644
--- a/unotools/source/accessibility/accessiblerelationsethelper.cxx
+++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx
@@ -33,22 +33,16 @@ public:
AccessibleRelationSetHelperImpl(const AccessibleRelationSetHelperImpl& rImpl);
/// @throws uno::RuntimeException
- sal_Int32 getRelationCount( )
- throw (uno::RuntimeException);
+ sal_Int32 getRelationCount( );
/// @throws lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
- AccessibleRelation getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException);
+ AccessibleRelation getRelation( sal_Int32 nIndex );
/// @throws uno::RuntimeException
- bool containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException);
+ bool containsRelation( sal_Int16 aRelationType );
/// @throws uno::RuntimeException
- AccessibleRelation getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException);
+ AccessibleRelation getRelationByType( sal_Int16 aRelationType );
/// @throws uno::RuntimeException
- void AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException);
+ void AddRelation(const AccessibleRelation& rRelation);
private:
std::vector<AccessibleRelation> maRelations;
@@ -64,14 +58,11 @@ AccessibleRelationSetHelperImpl::AccessibleRelationSetHelperImpl(const Accessibl
}
sal_Int32 AccessibleRelationSetHelperImpl::getRelationCount( )
- throw (uno::RuntimeException)
{
return maRelations.size();
}
AccessibleRelation AccessibleRelationSetHelperImpl::getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException)
{
if ((nIndex < 0) || (static_cast<sal_uInt32>(nIndex) >= maRelations.size()))
throw lang::IndexOutOfBoundsException();
@@ -79,7 +70,6 @@ AccessibleRelation AccessibleRelationSetHelperImpl::getRelation( sal_Int32 nInde
}
bool AccessibleRelationSetHelperImpl::containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException)
{
AccessibleRelation defaultRelation; // default is INVALID
AccessibleRelation relationByType = getRelationByType(aRelationType);
@@ -87,7 +77,6 @@ bool AccessibleRelationSetHelperImpl::containsRelation( sal_Int16 aRelationType
}
AccessibleRelation AccessibleRelationSetHelperImpl::getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException)
{
sal_Int32 nCount(getRelationCount());
sal_Int32 i(0);
@@ -103,7 +92,6 @@ AccessibleRelation AccessibleRelationSetHelperImpl::getRelationByType( sal_Int16
}
void AccessibleRelationSetHelperImpl::AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException)
{
sal_Int32 nCount(getRelationCount());
sal_Int32 i(0);
@@ -150,7 +138,6 @@ AccessibleRelationSetHelper::~AccessibleRelationSetHelper()
*/
sal_Int32 SAL_CALL
AccessibleRelationSetHelper::getRelationCount( )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelationCount();
@@ -171,8 +158,6 @@ sal_Int32 SAL_CALL
*/
AccessibleRelation SAL_CALL
AccessibleRelationSetHelper::getRelation( sal_Int32 nIndex )
- throw (lang::IndexOutOfBoundsException,
- uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelation(nIndex);
@@ -192,7 +177,6 @@ sal_Int32 SAL_CALL
*/
sal_Bool SAL_CALL
AccessibleRelationSetHelper::containsRelation( sal_Int16 aRelationType )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->containsRelation(aRelationType);
@@ -211,14 +195,12 @@ sal_Bool SAL_CALL
*/
AccessibleRelation SAL_CALL
AccessibleRelationSetHelper::getRelationByType( sal_Int16 aRelationType )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
return mpHelperImpl->getRelationByType(aRelationType);
}
void AccessibleRelationSetHelper::AddRelation(const AccessibleRelation& rRelation)
- throw (uno::RuntimeException)
{
osl::MutexGuard aGuard (maMutex);
mpHelperImpl->AddRelation(rRelation);
@@ -227,7 +209,6 @@ void AccessibleRelationSetHelper::AddRelation(const AccessibleRelation& rRelatio
//===== XTypeProvider =======================================================
uno::Sequence< css::uno::Type> AccessibleRelationSetHelper::getTypes()
- throw (css::uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard (maMutex);
css::uno::Sequence< css::uno::Type> aTypeSequence {
@@ -238,7 +219,6 @@ uno::Sequence< css::uno::Type> AccessibleRelationSetHelper::getTypes()
}
uno::Sequence<sal_Int8> SAL_CALL AccessibleRelationSetHelper::getImplementationId()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
}