diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /dtrans/source | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'dtrans/source')
-rw-r--r-- | dtrans/source/cnttype/wbench/testcnttype.cxx | 1 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/source.cxx | 2 | ||||
-rw-r--r-- | dtrans/source/win32/workbench/test_wincb.cxx | 9 |
3 files changed, 5 insertions, 7 deletions
diff --git a/dtrans/source/cnttype/wbench/testcnttype.cxx b/dtrans/source/cnttype/wbench/testcnttype.cxx index e7fe844e2c31..6f8017f54520 100644 --- a/dtrans/source/cnttype/wbench/testcnttype.cxx +++ b/dtrans/source/cnttype/wbench/testcnttype.cxx @@ -66,7 +66,6 @@ void ShutdownServiceMgr( Reference< XMultiServiceFactory >& SrvMgr ) // Dispose and clear factory xComponent->dispose(); SrvMgr.clear(); - SrvMgr = Reference< XMultiServiceFactory >(); } //---------------------------------------------------------------- diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index 882c72b84416..f4ce6b4aa50b 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -372,7 +372,7 @@ unsigned __stdcall DndOleSTAFunc(LPVOID pParams) //--> TRA // clear the global transferable again - g_XTransferable = Reference< XTransferable >( ); + g_XTransferable.clear(); //<-- TRA OSL_ENSURE( hr != E_INVALIDARG, "IDataObject impl does not contain valid data"); diff --git a/dtrans/source/win32/workbench/test_wincb.cxx b/dtrans/source/win32/workbench/test_wincb.cxx index b32a56fe3622..9dae8556c490 100644 --- a/dtrans/source/win32/workbench/test_wincb.cxx +++ b/dtrans/source/win32/workbench/test_wincb.cxx @@ -299,11 +299,11 @@ int SAL_CALL main( int nArgc, char* Argv[] ) // flush the clipboard content Reference< XFlushableClipboard > rXFlushableClip( xClipboard, UNO_QUERY ); rXFlushableClip->flushClipboard( ); - rXFlushableClip = Reference< XFlushableClipboard >( ); + rXFlushableClip.clear(); xClipNotifier->removeClipboardListener( rXClipListener ); - rXClipListener = Reference< XClipboardListener >( ); - xClipNotifier = Reference< XClipboardNotifier >( ); + rXClipListener.clear(); + xClipNotifier.clear(); //-------------------------------------------------- // shutdown the service manager @@ -317,10 +317,9 @@ int SAL_CALL main( int nArgc, char* Argv[] ) // Dispose and clear factory xComponent->dispose(); - xComponent = Reference< XComponent >( ); + xComponent.clear(); g_xFactory.clear(); - g_xFactory = Reference< XMultiServiceFactory >(); CoUninitialize( ); |