diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-21 15:48:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-23 16:48:15 +0200 |
commit | 4809fedd7cd3443100fba1c776267e2d87eb3f95 (patch) | |
tree | ead8e748678a1fa70b9d89861119fdea805c93e4 /svl/source/items/itemprop.cxx | |
parent | c7c27b9b191291cf36e4940aef3e3e7371855797 (diff) |
Clean up uses of Any::getValue() in svl
Change-Id: I2005ce59d6211181ed039eaff60ffd31084e1d40
Diffstat (limited to 'svl/source/items/itemprop.cxx')
-rw-r--r-- | svl/source/items/itemprop.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 639c1f357153..69f78e5ac19f 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -17,7 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> +#include <o3tl/any.hxx> #include <svl/itemprop.hxx> #include <svl/itempool.hxx> #include <svl/itemset.hxx> @@ -198,7 +200,7 @@ void SfxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry& rEn if( rEntry.aType.getTypeClass() == TypeClass_ENUM && rAny.getValueTypeClass() == TypeClass_LONG ) { - sal_Int32 nTmp = *static_cast<sal_Int32 const *>(rAny.getValue()); + sal_Int32 nTmp = *o3tl::forceAccess<sal_Int32>(rAny); rAny.setValue( &nTmp, rEntry.aType ); } } |