From 71540e1e47bcb1cea34861e13a47a558a88757e1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 10 Oct 2014 09:45:44 +0200 Subject: cid#1244949 Uncaught exception Change-Id: Ic33d60a435ee875e8e342420046aae436739c123 --- include/vbahelper/vbadocumentsbase.hxx | 2 +- vbahelper/source/vbahelper/vbadocumentsbase.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vbahelper/vbadocumentsbase.hxx b/include/vbahelper/vbadocumentsbase.hxx index c4e002f10f6b..b87702fca6f0 100644 --- a/include/vbahelper/vbadocumentsbase.hxx +++ b/include/vbahelper/vbadocumentsbase.hxx @@ -50,7 +50,7 @@ public: virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) SAL_OVERRIDE = 0; protected: - css::uno::Any createDocument() throw (css::uno::RuntimeException); + css::uno::Any createDocument() throw (css::uno::RuntimeException, std::exception); void closeDocuments() throw (css::uno::RuntimeException); css::uno::Any openDocument( const OUString& Filename, const css::uno::Any& ReadOnly, const css::uno::Sequence< css::beans::PropertyValue >& rProps ) throw (css::uno::RuntimeException); }; diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx index 6f8a6a83b918..1c82657dcdb9 100644 --- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx +++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx @@ -234,7 +234,7 @@ void lclSetupComponent( const uno::Reference< lang::XComponent >& rxComponent, b } // namespace -uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException) +uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException, std::exception) { // #163808# determine state of Application.ScreenUpdating and Application.Interactive symbols (before new document is opened) uno::Reference< XApplicationBase > xApplication( Application(), uno::UNO_QUERY ); -- cgit