Kaydet (Commit) fd8f3284 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up uses of Any::getValue() in cppcanvas

Change-Id: I9a69b35ee7dc2da3912a72361e0e742bf480e6be
üst d453d74b
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <cppcanvas/vclfactory.hxx> #include <cppcanvas/vclfactory.hxx>
#include <comphelper/servicedecl.hxx> #include <comphelper/servicedecl.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <o3tl/any.hxx>
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -34,7 +35,7 @@ void MtfRenderer::draw (double fScaleX, double fScaleY) throw (uno::RuntimeExcep ...@@ -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) void MtfRenderer::setFastPropertyValue( sal_Int32 nHandle, const uno::Any& aAny) throw (uno::RuntimeException, std::exception)
{ {
if (nHandle == 0) { if (nHandle == 0) {
mpMetafile = reinterpret_cast<GDIMetaFile*>( *static_cast<const sal_Int64*>(aAny.getValue()) ); mpMetafile = reinterpret_cast<GDIMetaFile*>( *o3tl::doAccess<sal_Int64>(aAny) );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment