summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-31 14:58:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-02 12:14:48 +0100
commit3fa329f6108c47b9e86724ed2d6e7d294239107e (patch)
treebe3f13b1128856ddc00464bb72c8728f89fc12ee
parent9ed8e1f19c3d9cffc1052350a5854c3097639874 (diff)
coverity#707382 Uncaught exception
Change-Id: Idad4fbff404c23b74a83c2d3e745363c52c3d90a
-rw-r--r--oovbaapi/ooo/vba/word/XParagraphFormat.idl7
-rw-r--r--sw/source/ui/vba/vbaparagraphformat.cxx2
-rw-r--r--sw/source/ui/vba/vbaparagraphformat.hxx2
3 files changed, 7 insertions, 4 deletions
diff --git a/oovbaapi/ooo/vba/word/XParagraphFormat.idl b/oovbaapi/ooo/vba/word/XParagraphFormat.idl
index 693eb0ce3b52..61b9478a9fa1 100644
--- a/oovbaapi/ooo/vba/word/XParagraphFormat.idl
+++ b/oovbaapi/ooo/vba/word/XParagraphFormat.idl
@@ -20,16 +20,19 @@
#define __ooo_vba_word_XParagraphFormat_idl__
#include <com/sun/star/uno/XInterface.idl>
+#include <com/sun/star/script/BasicErrorException.idl>
#include <ooo/vba/XHelperInterface.idl>
-
module ooo { module vba { module word {
interface XParagraphFormat
{
interface ooo::vba::XHelperInterface;
- [attribute] long Alignment;
+ [attribute] long Alignment
+ {
+ get raises ( com::sun::star::script::BasicErrorException );
+ };
[attribute] float FirstLineIndent;
[attribute] any KeepTogether;
[attribute] any KeepWithNext;
diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx
index 976200d9308e..6edd55aed454 100644
--- a/sw/source/ui/vba/vbaparagraphformat.cxx
+++ b/sw/source/ui/vba/vbaparagraphformat.cxx
@@ -44,7 +44,7 @@ SwVbaParagraphFormat::~SwVbaParagraphFormat()
{
}
-sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment() throw (uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment() throw (uno::RuntimeException, css::script::BasicErrorException, std::exception)
{
style::ParagraphAdjust aParaAdjust = style::ParagraphAdjust_LEFT;
mxParaProps->getPropertyValue("ParaAdjust") >>= aParaAdjust;
diff --git a/sw/source/ui/vba/vbaparagraphformat.hxx b/sw/source/ui/vba/vbaparagraphformat.hxx
index e4f4071fc30c..3911e05ad967 100644
--- a/sw/source/ui/vba/vbaparagraphformat.hxx
+++ b/sw/source/ui/vba/vbaparagraphformat.hxx
@@ -47,7 +47,7 @@ public:
virtual ~SwVbaParagraphFormat();
// Attributes
- virtual ::sal_Int32 SAL_CALL getAlignment() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual ::sal_Int32 SAL_CALL getAlignment() throw (css::uno::RuntimeException, css::script::BasicErrorException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setAlignment( ::sal_Int32 _alignment ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual float SAL_CALL getFirstLineIndent() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setFirstLineIndent( float _firstlineindent ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;