From 66da64c74829a68a8dc55c9380ecd6c84d0fc331 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Oct 2014 15:42:36 +0200 Subject: [PATCH] Missing include ...and only use getCaughtException as first statement in catch block. Change-Id: Idcac073896b84fd2671b52b2315f454651dbf910 --- forms/source/component/FormComponent.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 180a2c06501b..b7a3a9efec38 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -654,10 +655,11 @@ void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeExcept } catch (const css::beans::UnknownPropertyException&) { + css::uno::Any a(cppu::getCaughtException()); throw WrappedTargetRuntimeException( "OControlModel::setName", *const_cast< OControlModel* >( this ), - ::cppu::getCaughtException() + a ); } }