summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-23 08:57:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-23 09:40:03 +0100
commitcaa5a3ae55965290b0122e73191de691acf23b3f (patch)
tree9030171631574872187d7dedf3ab96f792373c56
parent7062961299eab7b2ba2444871a3faf09265d7662 (diff)
coverity#707379 Uncaught exception
Change-Id: Icaf92098dd7c9b9b6094212d62f5209c63d823d8
-rw-r--r--oovbaapi/ooo/vba/word/XOptions.idl2
-rw-r--r--sw/source/ui/vba/vbaoptions.cxx3
-rw-r--r--sw/source/ui/vba/vbaoptions.hxx3
3 files changed, 5 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XOptions.idl b/oovbaapi/ooo/vba/word/XOptions.idl
index 158fc6515992..497f7782e323 100644
--- a/oovbaapi/ooo/vba/word/XOptions.idl
+++ b/oovbaapi/ooo/vba/word/XOptions.idl
@@ -42,7 +42,7 @@ interface XOptions
[attribute] boolean AutoFormatApplyLists;
[attribute] boolean AutoFormatApplyBulletedLists;
- any DefaultFilePath( [in] long Path );
+ any DefaultFilePath( [in] long Path ) raises (com::sun::star::script::BasicErrorException);
};
}; }; };
diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx
index a1e865071011..a2d4591900bb 100644
--- a/sw/source/ui/vba/vbaoptions.cxx
+++ b/sw/source/ui/vba/vbaoptions.cxx
@@ -39,7 +39,8 @@ SwVbaOptions::~SwVbaOptions()
}
uno::Any SAL_CALL
-SwVbaOptions::DefaultFilePath( sal_Int32 _path ) throw ( uno::RuntimeException, std::exception )
+SwVbaOptions::DefaultFilePath( sal_Int32 _path )
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
switch( _path )
{
diff --git a/sw/source/ui/vba/vbaoptions.hxx b/sw/source/ui/vba/vbaoptions.hxx
index 77b978060a97..a47ad6d972bc 100644
--- a/sw/source/ui/vba/vbaoptions.hxx
+++ b/sw/source/ui/vba/vbaoptions.hxx
@@ -65,7 +65,8 @@ public:
virtual void SAL_CALL setAutoFormatApplyBulletedLists( sal_Bool _autoformatapplybulletedlists ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// Methods
- virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path )
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
//PropListener
virtual void setValueEvent( const css::uno::Any& value ) SAL_OVERRIDE;