diff --git a/extensions/source/ole/unoconversionutilities.hxx b/extensions/source/ole/unoconversionutilities.hxx index 15181991b2d0..1bc1fafeb967 100644 --- a/extensions/source/ole/unoconversionutilities.hxx +++ b/extensions/source/ole/unoconversionutilities.hxx @@ -1820,8 +1820,7 @@ Any UnoConversionUtilities::createOleObjectWrapper(VARIANT* pVar, const Type& Any params[3]; params[0] <<= reinterpret_cast(spUnknown.p); - sal_Bool bDisp = pVar->vt == VT_DISPATCH ? sal_True : sal_False; - params[1].setValue( & bDisp, cppu::UnoType::get()); + params[1] <<= (pVar->vt == VT_DISPATCH); params[2] <<= seqTypes; xInit->initialize( Sequence( params, 3));