diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-12 20:40:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-12 21:12:19 +0100 |
commit | 67f5012d78cabc84a63d232140e34d3658c8c7a0 (patch) | |
tree | 22773a38d8361e3133511a11a94011247fd0665a /sc | |
parent | 23b530d3e7d0c63318510dd353ba9896e16b802e (diff) |
coverity#1038332 Uncaught exception
Change-Id: I02d8a2ab6821922c318d4b83a1381b65d8521e1e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/inc/xestream.hxx | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index bedb24f55517..1595019fe3eb 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -1051,7 +1051,9 @@ ScDocShell* XclExpXmlStream::getDocShell() } bool XclExpXmlStream::exportDocument() - throw (css::uno::RuntimeException, std::exception) + throw (css::uno::RuntimeException, + css::ucb::ContentCreationException, + std::exception) { ScDocShell* pShell = getDocShell(); ScDocument& rDoc = pShell->GetDocument(); diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index ac75f7f033ce..56dc6ec4808b 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SC_SOURCE_FILTER_INC_XESTREAM_HXX #include <com/sun/star/beans/NamedValue.hpp> +#include <com/sun/star/ucb/ContentCreationException.hpp> #include <map> #include <stack> @@ -320,7 +321,9 @@ public: // ignore virtual bool exportDocument() - throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + throw (css::uno::RuntimeException, + css::ucb::ContentCreationException, + std::exception) SAL_OVERRIDE; // only needed for import; ignore virtual bool importDocument() throw() SAL_OVERRIDE; |