diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-20 10:28:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-20 10:57:19 +0100 |
commit | 9e8a88b6dace33f6e07ba308f99320124166b971 (patch) | |
tree | c85efee130d6c6459fe5812ba938cd2f2c4a804e /forms | |
parent | 4fd65ac3292a219162a19d8cf1d06842a4c4d498 (diff) |
coverity#706540 Uncaught exception
Change-Id: I175050b5ab66f4eeaa658f0aab1739b175d38d51
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormComponent.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 996e1b6580e0..180a2c06501b 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -30,6 +30,7 @@ #include <com/sun/star/form/XLoadable.hpp> #include <com/sun/star/io/XMarkableStream.hpp> #include <com/sun/star/lang/DisposedException.hpp> +#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> #include <com/sun/star/sdb/XRowSetChangeBroadcaster.hpp> #include <com/sun/star/sdb/XRowSetSupplier.hpp> #include <com/sun/star/sdbc/ColumnValue.hpp> @@ -647,7 +648,18 @@ OUString SAL_CALL OControlModel::getName() throw(RuntimeException, std::exceptio void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeException, std::exception) { + try + { setFastPropertyValue(PROPERTY_ID_NAME, makeAny(_rName)); + } + catch (const css::beans::UnknownPropertyException&) + { + throw WrappedTargetRuntimeException( + "OControlModel::setName", + *const_cast< OControlModel* >( this ), + ::cppu::getCaughtException() + ); + } } // XServiceInfo |