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 /extensions | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/nsplugin/source/so_instance.cxx | 16 | ||||
-rw-r--r-- | extensions/source/propctrlr/eformshelper.cxx | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/extensions/source/nsplugin/source/so_instance.cxx b/extensions/source/nsplugin/source/so_instance.cxx index 7de17815ff0a..57e573802729 100644 --- a/extensions/source/nsplugin/source/so_instance.cxx +++ b/extensions/source/nsplugin/source/so_instance.cxx @@ -266,7 +266,7 @@ sal_Bool SoPluginInstance::LoadDocument(NSP_HWND hParent) } //free the input stream, it is hold by the m_xComponent - xInputStream = Reference<io::XInputStream>(); + xInputStream.clear(); debug_fprintf(NSP_LOG_APPEND, "load document success\n"); @@ -352,7 +352,7 @@ sal_Bool SoPluginInstance::SetWindow(NSP_HWND hParent, int x, int y, int w, int if(!bRetval){ // try to reload document again debug_fprintf(NSP_LOG_APPEND, "load document error, try to reload it once again\n"); - mxRemoteMSF = Reference< XMultiServiceFactory >(); + mxRemoteMSF.clear(); m_bInit = sal_False; bRetval = LoadDocument(hParent); debug_fprintf(NSP_LOG_APPEND, "load document again, return %d\n", bRetval); @@ -416,12 +416,12 @@ sal_Bool SoPluginInstance::Destroy(void) } } - m_xUnoWin = Reference< awt::XWindow >(); - m_xComponent = Reference< XComponent >(); - m_xFrame = Reference< frame::XFrame2 >(); - m_xFrames = Reference< frame::XFrames >(); - m_xDispatcher = Reference< frame::XDispatchHelper >(); - m_xDispatchProvider = Reference< frame::XDispatchProvider >(); + m_xUnoWin.clear(); + m_xComponent.clear(); + m_xFrame.clear(); + m_xFrames.clear(); + m_xDispatcher.clear(); + m_xDispatchProvider.clear(); return sal_True; } diff --git a/extensions/source/propctrlr/eformshelper.cxx b/extensions/source/propctrlr/eformshelper.cxx index daae33437f13..45352357d809 100644 --- a/extensions/source/propctrlr/eformshelper.cxx +++ b/extensions/source/propctrlr/eformshelper.cxx @@ -652,7 +652,7 @@ namespace pcr _rElementNames.resize( 0 ); if ( _bPrepentEmptyEntry ) - rMapUINameToElement[ OUString() ] = Reference< XPropertySet >(); + rMapUINameToElement[ OUString() ].clear(); try { |