Kaydet (Commit) 98a3def9 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158410 Uncaught exception

mdds::general_error is thrown but is luckily inherited from std::exception so
use the new ability of 0bc89aac "cppumaker:
Allow UNO interface functions to throw std::exception."

Change-Id: I2c1d30e0806281d43c7bec103d4c85e1799c5b4f
üst 472bc326
......@@ -166,8 +166,8 @@ Rectangle ScAccessibleCell::GetBoundingBoxOnScreen(void) const
return aCellRect;
}
Rectangle ScAccessibleCell::GetBoundingBox(void) const
throw (uno::RuntimeException)
Rectangle ScAccessibleCell::GetBoundingBox() const
throw (uno::RuntimeException, std::exception)
{
Rectangle aCellRect;
if (mpViewShell)
......
......@@ -580,8 +580,8 @@ Rectangle ScAccessibleContextBase::GetBoundingBoxOnScreen(void) const
return Rectangle();
}
Rectangle ScAccessibleContextBase::GetBoundingBox(void) const
throw (uno::RuntimeException)
Rectangle ScAccessibleContextBase::GetBoundingBox() const
throw (uno::RuntimeException, std::exception)
{
OSL_FAIL("not implemented");
return Rectangle();
......
......@@ -101,8 +101,8 @@ protected:
throw (::com::sun::star::uno::RuntimeException);
/// Return the object's current bounding box relative to the parent object.
virtual Rectangle GetBoundingBox(void) const
throw (::com::sun::star::uno::RuntimeException);
virtual Rectangle GetBoundingBox() const
throw (::com::sun::star::uno::RuntimeException, std::exception);
public:
///===== XAccessibleContext ==============================================
......
......@@ -274,8 +274,8 @@ protected:
throw (::com::sun::star::uno::RuntimeException);
/// Return the object's current bounding box relative to the parent object.
virtual Rectangle GetBoundingBox(void) const
throw (::com::sun::star::uno::RuntimeException);
virtual Rectangle GetBoundingBox() const
throw (::com::sun::star::uno::RuntimeException, std::exception);
public:
/// Calls all Listener to tell they the change.
......
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