diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-27 13:38:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-27 14:34:22 +0000 |
commit | 8fbbb94a3914223de1f690090e86a1ec9fbdaa30 (patch) | |
tree | 129e4d4ee758b986400dc73623b8ff59c4b4a47f /forms | |
parent | 6a0985eca284e6e2eb6a80e284ab5c59d8b005f7 (diff) |
coverity#706537 Uncaught exception
Change-Id: I687948ef04e4ffdce51a7ac20854d6ebe96f1f25
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 1fe10693e8ae..dd1bc79053ec 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -388,10 +388,14 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource ) setPropertyValue( pSourceProperty->Name, xSourceProps->getPropertyValue( pSourceProperty->Name ) ); } } + catch(const RuntimeException&) + { + throw; + } catch(const Exception&) { css::uno::Any a(cppu::getCaughtException()); - throw WrappedTargetException( + throw WrappedTargetRuntimeException( "Could not clone the given database form.", *const_cast< ODatabaseForm* >( &_cloneSource ), a @@ -401,7 +405,6 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource ) osl_atomic_decrement( &m_refCount ); } - void ODatabaseForm::impl_construct() { // aggregate a row set |