summaryrefslogtreecommitdiff
path: root/extensions/source/activex
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2009-02-23 14:56:10 +0000
committerRelease Engineers <releng@openoffice.org>2009-02-23 14:56:10 +0000
commitc5453d273671ac0004f88fc2a8055e8a1e106b99 (patch)
tree05f8ffc70e33c60cb00a9e5996eec51d4db4ef34 /extensions/source/activex
parent9ad22aaea5f644fcfa5a397424c358724aa73663 (diff)
#i10000# Warning
Diffstat (limited to 'extensions/source/activex')
-rw-r--r--extensions/source/activex/main/SOActiveX.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/source/activex/main/SOActiveX.cpp b/extensions/source/activex/main/SOActiveX.cpp
index 53d1347322c4..9811cd3f7c19 100644
--- a/extensions/source/activex/main/SOActiveX.cpp
+++ b/extensions/source/activex/main/SOActiveX.cpp
@@ -171,9 +171,10 @@ HRESULT CSOActiveX::Cleanup()
{
// remove dispatch interceptor
CComQIPtr< IDispatch, &IID_IDispatch > pIDispDispInter( mpDispatchInterceptor );
+ CComVariant aVariant( pIDispDispInter );
ExecuteFunc( mpDispFrame,
L"releaseDispatchProviderInterceptor",
- &CComVariant( pIDispDispInter ),
+ &aVariant,
1,
&dummyResult );
}
@@ -821,10 +822,11 @@ HRESULT CSOActiveX::LoadURLToFrame( )
CComQIPtr< IDispatch, &IID_IDispatch > pIDispDispInter( mpDispatchInterceptor );
// register dispatch interceptor in the frame
+ CComVariant aDispVariant( pIDispDispInter );
CComVariant dummyResult;
hr = ExecuteFunc( mpDispFrame,
L"registerDispatchProviderInterceptor",
- &CComVariant( pIDispDispInter ),
+ &aDispVariant,
1,
&dummyResult );