diff options
Diffstat (limited to 'vbahelper/source/msforms/vbacontrols.cxx')
-rw-r--r-- | vbahelper/source/msforms/vbacontrols.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index 683f2fc81ffe..928d6d5a6632 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -31,6 +31,7 @@ #include "vbacontrols.hxx" #include "vbacontrol.hxx" +#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/implbase.hxx> #include <ooo/vba/XControlProvider.hpp> #include <unordered_map> @@ -410,11 +411,12 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St { throw; } - catch (const uno::Exception& e) + catch (const uno::Exception&) { + css::uno::Any anyEx = cppu::getCaughtException(); throw lang::WrappedTargetRuntimeException( "Can not create AXControl!", uno::Reference< uno::XInterface >(), - uno::makeAny( e ) ); + anyEx ); } return aResult; |