diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-04-25 19:08:42 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-05-31 15:46:25 +0300 |
commit | 3c041720304ec77202741b5d5c8df9b93bc70a70 (patch) | |
tree | e2559f7e5706d44fa0f2d0267123452eddaae0c4 /extensions | |
parent | bfedeb79937aa5e8bdf01ecf6be25e2bbe8a6db5 (diff) |
Simplify: Use AutomationInvokedZone::isActive()
Don't need the mbFromOLE boolean flag and the special "FromOLE"
parameter passed to the InvocationService::
createInstanceWithArguments().
Change-Id: I05e10a78955d87cb7c37e198c60c3ddcfdbc4275
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/ole/unoconversionutilities.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/ole/unoconversionutilities.hxx b/extensions/source/ole/unoconversionutilities.hxx index f0ef703bd845..cbec71299953 100644 --- a/extensions/source/ole/unoconversionutilities.hxx +++ b/extensions/source/ole/unoconversionutilities.hxx @@ -1395,9 +1395,8 @@ void UnoConversionUtilities<T>::createUnoObjectWrapper(const Any & rObj, VARIANT Reference<XSingleServiceFactory> xInvFactory= getInvocationFactory(rObj); if (xInvFactory.is()) { - Sequence<Any> params(2); + Sequence<Any> params(1); params.getArray()[0] = rObj; - params.getArray()[1] = makeAny(OUString("FromOLE")); Reference<XInterface> xInt2 = xInvFactory->createInstanceWithArguments(params); xInv.set(xInt2, UNO_QUERY); } |