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 /svx | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/svxrectctaccessiblecontext.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/formcontroller.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index bbb2797788d1..6c9fa05354e8 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -691,7 +691,7 @@ void SAL_CALL SvxRectCtlAccessibleContext::disposing() mnClientId = 0; } - mxParent = Reference< XAccessible >(); + mxParent.clear(); } } } @@ -1098,7 +1098,7 @@ void SAL_CALL SvxRectCtlChildAccessibleContext::disposing() mnClientId = 0; } - mxParent = Reference< XAccessible >(); + mxParent.clear(); delete mpBoundingBox; } diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 776fa59094bf..9a0ee3ed3da0 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -2447,7 +2447,7 @@ Reference< XControl > FormController::findControl(Sequence< Reference< XControl if ( _bRemove ) ::comphelper::removeElementAt( _rControls, i ); else if ( _bOverWrite ) - *pControls = Reference< XControl >(); + pControls->clear(); return xControl; } } diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index e58ddaef6e8f..cfeb01e4735a 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1835,7 +1835,7 @@ SvxStyleToolBoxControl::SvxStyleToolBoxControl( for ( sal_uInt16 i=0; i<MAX_FAMILIES; i++ ) { pBoundItems[i] = 0; - m_xBoundItems[i] = Reference< XComponent >(); + m_xBoundItems[i].clear(); pFamilyState[i] = NULL; } } diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 438427da897e..3eaf770d4581 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -269,7 +269,7 @@ void SAL_CALL SvXMLGraphicOutputStream::closeOutput() throw NotConnectedException() ; mxStmWrapper->closeOutput(); - mxStmWrapper = Reference< XOutputStream >(); + mxStmWrapper.clear(); mbClosed = sal_True; } |