summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/nameuno.hxx4
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index 01d42ff5bd10..f98169798bb7 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -91,7 +91,9 @@ public:
throw (::com::sun::star::uno::RuntimeException,
std::exception);
virtual sal_Int32 SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setType( sal_Int32 nType ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setType( sal_Int32 nType )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
/// XFormulaTokens
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken > SAL_CALL getTokens()
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 91768158b141..c29e0211214f 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -305,7 +305,8 @@ sal_Int32 SAL_CALL ScNamedRangeObj::getType() throw(uno::RuntimeException)
return nType;
}
-void SAL_CALL ScNamedRangeObj::setType( sal_Int32 nUnoType ) throw(uno::RuntimeException)
+void SAL_CALL ScNamedRangeObj::setType( sal_Int32 nUnoType )
+ throw (uno::RuntimeException, std::exception)
{
// see property 'IsSharedFormula' for RT_SHARED
SolarMutexGuard aGuard;