summaryrefslogtreecommitdiff
path: root/stoc/source/invocation
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-21 14:05:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-21 14:05:17 +0200
commit9cef658364e4d8441f490e4fe89c3bfa14cd24b3 (patch)
treed3759856838bb9fc6af85694bbe4c594f728e8f7 /stoc/source/invocation
parent7669bf3884ac053baca04e09d7c9994870983a4a (diff)
Clean up uses of Any::getValue() in stoc
Change-Id: I455b708bfcc9d5aa71bb0ffc21efec205302169e
Diffstat (limited to 'stoc/source/invocation')
-rw-r--r--stoc/source/invocation/invocation.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 0d405d53ba45..eee3da6905c7 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -360,14 +360,10 @@ Any Invocation_Impl::getMaterial() throw(RuntimeException, std::exception)
void Invocation_Impl::setMaterial( const Any& rMaterial )
{
// set the material first and only once
- Reference<XInterface> xObj;
-
- if (rMaterial.getValueType().getTypeClass() == TypeClass_INTERFACE)
- xObj = *static_cast<Reference<XInterface> const *>(rMaterial.getValue());
_aMaterial = rMaterial;
// First do this outside the guard
- _xDirect.set( xObj, UNO_QUERY );
+ _xDirect.set( rMaterial, UNO_QUERY );
if( _xDirect.is() )
{