Kaydet (Commit) 833067c8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707469 Uncaught exception

Change-Id: I93bb55b339dcc6a177d7403760703a895cebc805
üst 76e998d7
......@@ -158,7 +158,8 @@ class VBAHELPER_DLLPUBLIC ShapeHelper
protected:
css::uno::Reference< css::drawing::XShape > xShape;
public:
ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape) throw (css::script::BasicErrorException );
ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape)
throw (css::script::BasicErrorException, css::uno::RuntimeException);
double getHeight() const;
void setHeight(double _fheight) throw ( css::script::BasicErrorException );
......
......@@ -1004,7 +1004,9 @@ void ConcreteXShapeGeometryAttributes::setWidth( double nWidth)
}
ShapeHelper::ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape) throw (css::script::BasicErrorException ) : xShape( _xShape )
ShapeHelper::ShapeHelper( const css::uno::Reference< css::drawing::XShape >& _xShape)
throw (css::script::BasicErrorException, css::uno::RuntimeException)
: xShape( _xShape )
{
if( !xShape.is() )
throw css::uno::RuntimeException( "No valid shape for helper" , css::uno::Reference< css::uno::XInterface >() );
......
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