summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbavariable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbavariable.cxx')
-rw-r--r--sw/source/ui/vba/vbavariable.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/vba/vbavariable.cxx b/sw/source/ui/vba/vbavariable.cxx
index 7aab993d4ebb..76033d2a9d83 100644
--- a/sw/source/ui/vba/vbavariable.cxx
+++ b/sw/source/ui/vba/vbavariable.cxx
@@ -26,7 +26,7 @@ using namespace ::ooo::vba;
using namespace ::com::sun::star;
SwVbaVariable::SwVbaVariable( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext,
- const uno::Reference< beans::XPropertyAccess >& rUserDefined, const OUString& rVariableName ) throw ( uno::RuntimeException ) :
+ const uno::Reference< beans::XPropertyAccess >& rUserDefined, const OUString& rVariableName ) :
SwVbaVariable_BASE( rParent, rContext ), mxUserDefined( rUserDefined ), maVariableName( rVariableName )
{
}
@@ -36,26 +36,26 @@ SwVbaVariable::~SwVbaVariable()
}
OUString SAL_CALL
-SwVbaVariable::getName() throw ( css::uno::RuntimeException, std::exception )
+SwVbaVariable::getName()
{
return maVariableName;
}
void SAL_CALL
-SwVbaVariable::setName( const OUString& ) throw ( css::uno::RuntimeException, std::exception )
+SwVbaVariable::setName( const OUString& )
{
throw uno::RuntimeException(" Fail to set name" );
}
uno::Any SAL_CALL
-SwVbaVariable::getValue() throw ( css::uno::RuntimeException, std::exception )
+SwVbaVariable::getValue()
{
uno::Reference< beans::XPropertySet > xProp( mxUserDefined, uno::UNO_QUERY_THROW );
return xProp->getPropertyValue( maVariableName );
}
void SAL_CALL
-SwVbaVariable::setValue( const uno::Any& rValue ) throw ( css::uno::RuntimeException, std::exception )
+SwVbaVariable::setValue( const uno::Any& rValue )
{
// FIXME: fail to set the value if the new type of value is different from the original one.
uno::Reference< beans::XPropertySet > xProp( mxUserDefined, uno::UNO_QUERY_THROW );
@@ -63,7 +63,7 @@ SwVbaVariable::setValue( const uno::Any& rValue ) throw ( css::uno::RuntimeExcep
}
sal_Int32 SAL_CALL
-SwVbaVariable::getIndex() throw ( css::uno::RuntimeException, std::exception )
+SwVbaVariable::getIndex()
{
const uno::Sequence< beans::PropertyValue > props = mxUserDefined->getPropertyValues();
for (sal_Int32 i = 0; i < props.getLength(); ++i)