summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 12:48:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 14:56:18 +0000
commitb44ba1ace8908f413a62f693232c05921d44acd9 (patch)
treed2db81971ba845990b7c75c38ad21f9f6ca1fcb3 /vbahelper/source
parent964c4183df0f775e92a9bdda287f6f2573d0073c (diff)
coverity#707460 Uncaught exception
Change-Id: I8157893addbf805a18deac5034098dfda125a631
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index 2aa3daf86ccf..038d4fadc1e5 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/script/XInvocation.hpp>
#include <com/sun/star/lang/WrappedTargetException.hpp>
+#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include "vbacontrols.hxx"
#include "vbacontrol.hxx"
@@ -433,7 +434,7 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St
}
catch (const uno::Exception& e)
{
- throw lang::WrappedTargetException( "Can not create AXControl!",
+ throw lang::WrappedTargetRuntimeException( "Can not create AXControl!",
uno::Reference< uno::XInterface >(),
uno::makeAny( e ) );
}