summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-10 18:54:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-10 18:54:28 +0200
commit80c35d97b9b3b60a091aae77de0ffef38cbf531a (patch)
treebd562b66960585a3c5d4145abcbd7098acda81e0 /sw/source/core/graphic
parentb05ab09bccacc8e23685c455e24ab64cbf6e7ae3 (diff)
Clean up uses of Any::getValue() in sw
Change-Id: Ifaa239ab3e285e8cf998339456ece5ce99008af9
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/grfatr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx
index 71cf98283d6b..0ed146ad4b36 100644
--- a/sw/source/core/graphic/grfatr.cxx
+++ b/sw/source/core/graphic/grfatr.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/text/GraphicCrop.hpp>
#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
#include <com/sun/star/drawing/ColorMode.hpp>
+#include <o3tl/any.hxx>
#include <svtools/grfmgr.hxx>
#include <swtypes.hxx>
#include <grfatr.hxx>
@@ -100,7 +101,7 @@ bool SwMirrorGrf::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
bool SwMirrorGrf::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
{
bool bRet = true;
- bool bVal = *static_cast<sal_Bool const *>(rVal.getValue());
+ bool bVal = *o3tl::doAccess<bool>(rVal);
// vertical and horizontal were swapped at some point
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )