diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-21 12:46:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-21 12:46:45 +0200 |
commit | 038069806e4e2a8760fa415a23c28ccd338239f4 (patch) | |
tree | 601890911cabdf1f45730541c8c3544a326c92ba /pyuno/source/module/pyuno_adapter.cxx | |
parent | cc66f408f99602618be12ce6c47152233291e1db (diff) |
Clean up uses of Any::getValue() in pyuno
Change-Id: I35c4ac0b84e439982f87420aa7587c99ee367920
Diffstat (limited to 'pyuno/source/module/pyuno_adapter.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index 77abd7d3e4b8..cf60272a917e 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -18,6 +18,8 @@ */ #include "pyuno_impl.hxx" +#include <o3tl/any.hxx> + #include <rtl/ustrbuf.hxx> #include <rtl/strbuf.hxx> @@ -87,7 +89,7 @@ void raiseInvocationTargetExceptionWhenNeeded( const Runtime &runtime ) PyErr_Fetch(reinterpret_cast<PyObject **>(&excType), reinterpret_cast<PyObject**>(&excValue), reinterpret_cast<PyObject**>(&excTraceback)); Any unoExc( runtime.extractUnoException( excType, excValue, excTraceback ) ); throw InvocationTargetException( - static_cast<css::uno::Exception const *>(unoExc.getValue())->Message, + o3tl::doAccess<css::uno::Exception>(unoExc)->Message, Reference<XInterface>(), unoExc ); } } |