From 9e8a88b6dace33f6e07ba308f99320124166b971 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 20 Oct 2014 10:28:06 +0100 Subject: coverity#706540 Uncaught exception Change-Id: I175050b5ab66f4eeaa658f0aab1739b175d38d51 --- forms/source/component/FormComponent.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 #include #include +#include #include #include #include @@ -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 -- cgit