summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stoc/source/inspect/introspection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index 986e57fb4642..1089e1477f8e 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -476,7 +476,7 @@ void IntrospectionAccessStatic_Impl::setPropertyValueByIndex(const Any& obj, sal
Reference<XIdlField2> xField2(xField, UNO_QUERY);
if( xField2.is() )
{
- xField2->set( (Any&)obj, aValue );
+ xField2->set( const_cast<Any&>(obj), aValue );
// IllegalArgumentException
// NullPointerException
} else