Kaydet (Commit) 855010d9 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707290 Uncaught exception

Change-Id: If020fd537c15c41fe33134f554b7df1f10f18570
üst 1b6cefaf
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
// The following method is called when a SvxShape-object is to be created. // The following method is called when a SvxShape-object is to be created.
// Derived classes may obtain at this point a derivation or an object // Derived classes may obtain at this point a derivation or an object
// that is aggregating a SvxShape. // that is aggregating a SvxShape.
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
typedef cppu::WeakAggImplHelper4 typedef cppu::WeakAggImplHelper4
......
...@@ -300,7 +300,8 @@ SdrObject* SwFmDrawPage::_CreateSdrObject( const uno::Reference< drawing::XShape ...@@ -300,7 +300,8 @@ SdrObject* SwFmDrawPage::_CreateSdrObject( const uno::Reference< drawing::XShape
return SvxFmDrawPage::_CreateSdrObject( xShape ); return SvxFmDrawPage::_CreateSdrObject( xShape );
} }
uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) const throw (std::exception) uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) const
throw (uno::RuntimeException, std::exception)
{ {
uno::Reference< drawing::XShape > xRet; uno::Reference< drawing::XShape > xRet;
if(pObj->ISA(SwVirtFlyDrawObj) || pObj->GetObjInventor() == SWGInventor) if(pObj->ISA(SwVirtFlyDrawObj) || pObj->GetObjInventor() == SWGInventor)
......
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