diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 10:25:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 11:18:41 +0200 |
commit | f9a6e75e21e9919a405a1964d85345a1c0634067 (patch) | |
tree | 8b3a9162071da1e8beded91bc3cad16614b2abcc /sw/source/core/unocore/unodraw.cxx | |
parent | 0e31c12f4c1cb53e1d68d1129b3b42508605846f (diff) |
use uno::Reference::set method instead of assignmen
Change-Id: I76671a74150791e1a74ece3d5bcf40fd6c727ac7
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index d957a74c288b..7e351a7f591f 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -364,7 +364,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) xPrSet = new SwXGroupShape( xCreate ); else xPrSet = new SwXShape( xCreate ); - xRet = uno::Reference< drawing::XShape >(xPrSet, uno::UNO_QUERY); + xRet.set(xPrSet, uno::UNO_QUERY); } } return xRet; @@ -403,7 +403,7 @@ SwXShapesEnumeration::SwXShapesEnumeration(SwXDrawPage* const pDrawPage) std::set<const SwFrameFormat*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDrawPage->GetDoc()); for(sal_Int32 nIdx = 0; nIdx < nCount; nIdx++) { - uno::Reference<drawing::XShape> xShape = uno::Reference<drawing::XShape>(pDrawPage->getByIndex(nIdx, &aTextBoxes), uno::UNO_QUERY); + uno::Reference<drawing::XShape> xShape(pDrawPage->getByIndex(nIdx, &aTextBoxes), uno::UNO_QUERY); *pInserter++ = uno::makeAny(xShape); } } @@ -806,7 +806,7 @@ uno::Reference< drawing::XShapeGroup > SwXDrawPage::group(const uno::Reference< if(pContact) { uno::Reference< uno::XInterface > xInt = SwFmDrawPage::GetInterface( pContact->GetMaster() ); - xRet = uno::Reference< drawing::XShapeGroup >(xInt, uno::UNO_QUERY); + xRet.set(xInt, uno::UNO_QUERY); } pDoc->GetIDocumentUndoRedo().EndUndo( UNDO_END, NULL ); } |