summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-10 09:45:44 +0200
committerNoel Grandin <noel@peralex.com>2014-10-10 10:14:17 +0200
commit71540e1e47bcb1cea34861e13a47a558a88757e1 (patch)
tree6477819137831a6f25690f94c586d10c6c81a68c
parentd7ea649b56dd72ca94d6bf175ac9477a6c308f51 (diff)
cid#1244949 Uncaught exception
Change-Id: Ic33d60a435ee875e8e342420046aae436739c123
-rw-r--r--include/vbahelper/vbadocumentsbase.hxx2
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx2
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 );