From fd8f328462fc20d9a3a03b5f8ceb78faedeaa602 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jun 2016 18:55:53 +0200 Subject: Clean up uses of Any::getValue() in cppcanvas Change-Id: I9a69b35ee7dc2da3912a72361e0e742bf480e6be --- cppcanvas/source/uno/uno_mtfrenderer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cppcanvas/source/uno') 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 #include #include +#include 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( *static_cast(aAny.getValue()) ); + mpMetafile = reinterpret_cast( *o3tl::doAccess(aAny) ); } } -- cgit v1.2.3