summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/meta/xmlmetai.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx
index 10f60b7717dd..3e459c661f7c 100644
--- a/xmloff/source/meta/xmlmetai.cxx
+++ b/xmloff/source/meta/xmlmetai.cxx
@@ -24,6 +24,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <comphelper/processfactory.hxx>
+#include <cppuhelper/exc_hlp.hxx>
#include <rtl/character.hxx>
#include <xmloff/xmlmetai.hxx>
#include <xmloff/xmlimp.hxx>
@@ -124,11 +125,12 @@ lcl_initDocumentProperties(SvXMLImport & rImport,
xDocProps->getGenerator(), rImport.getImportInfo());
} catch (const uno::RuntimeException&) {
throw;
- } catch (const uno::Exception& e) {
+ } catch (const uno::Exception&) {
+ css::uno::Any anyEx = cppu::getCaughtException();
throw lang::WrappedTargetRuntimeException(
"SvXMLMetaDocumentContext::initDocumentProperties: "
"properties init exception",
- rImport, makeAny(e));
+ rImport, anyEx);
}
}
@@ -151,10 +153,11 @@ lcl_initGenerator(SvXMLImport & rImport,
SvXMLMetaDocumentContext::setBuildId(value, rImport.getImportInfo());
} catch (const uno::RuntimeException&) {
throw;
- } catch (const uno::Exception& e) {
+ } catch (const uno::Exception&) {
+ css::uno::Any anyEx = cppu::getCaughtException();
throw lang::WrappedTargetRuntimeException(
"SvXMLMetaDocumentContext::initGenerator: exception",
- rImport, makeAny(e));
+ rImport, anyEx);
}
}