summaryrefslogtreecommitdiff
path: root/cppcanvas/source/uno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-10 18:55:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-10 18:55:53 +0200
commitfd8f328462fc20d9a3a03b5f8ceb78faedeaa602 (patch)
treeb66367236c44a23e996a9ac85cb1c318c608392f /cppcanvas/source/uno
parentd453d74b09fc812118eba5a996ebbee28fe592cb (diff)
Clean up uses of Any::getValue() in cppcanvas
Change-Id: I9a69b35ee7dc2da3912a72361e0e742bf480e6be
Diffstat (limited to 'cppcanvas/source/uno')
-rw-r--r--cppcanvas/source/uno/uno_mtfrenderer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cppcanvas/source/uno/uno_mtfrenderer.cxx b/cppcanvas/source/uno/uno_mtfrenderer.cxx
index 6d2c311510c0..503047f413df 100644
--- a/cppcanvas/source/uno/uno_mtfrenderer.cxx
+++ b/cppcanvas/source/uno/uno_mtfrenderer.cxx
@@ -11,6 +11,7 @@
#include <cppcanvas/vclfactory.hxx>
#include <comphelper/servicedecl.hxx>
#include <cppuhelper/factory.hxx>
+#include <o3tl/any.hxx>
using namespace ::com::sun::star;
@@ -34,7 +35,7 @@ void MtfRenderer::draw (double fScaleX, double fScaleY) throw (uno::RuntimeExcep
void MtfRenderer::setFastPropertyValue( sal_Int32 nHandle, const uno::Any& aAny) throw (uno::RuntimeException, std::exception)
{
if (nHandle == 0) {
- mpMetafile = reinterpret_cast<GDIMetaFile*>( *static_cast<const sal_Int64*>(aAny.getValue()) );
+ mpMetafile = reinterpret_cast<GDIMetaFile*>( *o3tl::doAccess<sal_Int64>(aAny) );
}
}