diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-13 20:28:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-14 09:21:01 +0100 |
commit | dd9a1bae7c40b9441e640206e2b330a63fa23515 (patch) | |
tree | a125fe8127ece02079fe30dbaf087eb6027f5316 /svtools | |
parent | 594a5e20f751e1fb8f9b4f3fb53851c3dfb671e6 (diff) |
coverity#983902 Uncaught exception
Change-Id: Ic4e7413ac0c4c6c8eda9808e88572926e6b00be5
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/descriptor.cxx | 13 | ||||
-rw-r--r-- | svtools/source/graphic/descriptor.hxx | 6 |
2 files changed, 3 insertions, 16 deletions
diff --git a/svtools/source/graphic/descriptor.cxx b/svtools/source/graphic/descriptor.cxx index 1114923dc197..2ea8773dd5ec 100644 --- a/svtools/source/graphic/descriptor.cxx +++ b/svtools/source/graphic/descriptor.cxx @@ -63,25 +63,17 @@ GraphicDescriptor::GraphicDescriptor() : { } - - GraphicDescriptor::~GraphicDescriptor() throw() { } - - void GraphicDescriptor::init( const ::Graphic& rGraphic ) - throw() { mpGraphic = &rGraphic; } - - void GraphicDescriptor::init( const OUString& rURL ) - throw() { boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( rURL, STREAM_READ )); @@ -89,10 +81,7 @@ void GraphicDescriptor::init( const OUString& rURL ) implCreate( *pIStm, &rURL ); } - - void GraphicDescriptor::init( const uno::Reference< io::XInputStream >& rxIStm, const OUString& rURL ) - throw() { boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( rxIStm )); @@ -100,8 +89,6 @@ void GraphicDescriptor::init( const uno::Reference< io::XInputStream >& rxIStm, implCreate( *pIStm, &rURL ); } - - void GraphicDescriptor::implCreate( SvStream& rIStm, const OUString* pURL ) { OUString aURL; diff --git a/svtools/source/graphic/descriptor.hxx b/svtools/source/graphic/descriptor.hxx index e43464cf2911..53dfacacbd12 100644 --- a/svtools/source/graphic/descriptor.hxx +++ b/svtools/source/graphic/descriptor.hxx @@ -70,9 +70,9 @@ public: GraphicDescriptor(); virtual ~GraphicDescriptor() throw(); - void init( const ::Graphic& rGraphic ) throw(); - void init( const OUString& rURL ) throw(); - void init( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rxIStm, const OUString& rURL ) throw(); + void init( const ::Graphic& rGraphic ); + void init( const OUString& rURL ); + void init( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rxIStm, const OUString& rURL ); static OUString getImplementationName_Static() throw(); static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); |