summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/accessibility/GraphCtlAccessibleContext.cxx4
-rw-r--r--svx/source/accessibility/svxpixelctlaccessiblecontext.cxx2
-rw-r--r--svx/source/svdraw/svdobj.cxx2
-rw-r--r--svx/source/svdraw/svdograf.cxx2
-rw-r--r--svx/source/table/accessibletableshape.cxx6
-rw-r--r--svx/source/table/tablemodel.cxx4
-rw-r--r--svx/source/unodraw/unopage.cxx2
7 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
index a3a3e76d616c..be0594ed7327 100644
--- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx
+++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx
@@ -133,9 +133,9 @@ Reference< XAccessible > SvxGraphCtrlAccessibleContext::getAccessible( const Sdr
xAccessibleShape = pAcc.get();
if (pAcc.is())
{
- pAcc->Init ();
+ pAcc->Init();
}
- mxShapes[pObj] = pAcc;
+ mxShapes[pObj] = std::move(pAcc);
// Create event and inform listeners of the object creation.
CommitChange( AccessibleEventId::CHILD, Any( xAccessibleShape ), Any( Reference<XAccessible>() ) );
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
index c339c0a6c4f9..667fe8c76849 100644
--- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
@@ -255,7 +255,7 @@ void SvxPixelCtlAccessible::NotifyChild(tools::Long nIndex,bool bSelect ,bool bC
{
xNewChild->CheckChild();
}
- m_xCurChild = xNewChild;
+ m_xCurChild = std::move(xNewChild);
}
rtl::Reference<SvxPixelCtlAccessibleChild> SvxPixelCtlAccessible::CreateChild (tools::Long nIndex,Point mPoint)
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 5b90f222c412..76a4d4483743 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -2612,7 +2612,7 @@ rtl::Reference<SdrObject> SdrObject::ConvertToContourObj(SdrObject* pRet1, bool
for (const rtl::Reference<SdrObject>& pIterObj : *pObjList2)
pGroup->GetSubList()->NbcInsertObject(ConvertToContourObj(pIterObj.get(), bForceLineDash).get());
- pRet = pGroup;
+ pRet = std::move(pGroup);
}
else
{
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index a0c97cc3dde9..57cb8780fef3 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -977,7 +977,7 @@ rtl::Reference<SdrObject> SdrGrafObj::DoConvertToPolyObj(bool bBezier, bool bAdd
}
else
{
- pRetval = pLineFill;
+ pRetval = std::move(pLineFill);
}
}
diff --git a/svx/source/table/accessibletableshape.cxx b/svx/source/table/accessibletableshape.cxx
index f0079da0e5ca..a2ea65e4f056 100644
--- a/svx/source/table/accessibletableshape.cxx
+++ b/svx/source/table/accessibletableshape.cxx
@@ -156,7 +156,7 @@ rtl::Reference< AccessibleCell > AccessibleTableShapeImpl::getAccessibleCell (sa
xAccessibleCell->Init();
maChildMap[xCell] = xAccessibleCell;
- xChild = xAccessibleCell;
+ xChild = std::move(xAccessibleCell);
}
return xChild;
}
@@ -268,7 +268,7 @@ void SAL_CALL AccessibleTableShapeImpl::modified( const EventObject& /*aEvent*/
}
// move still existing cell from temporary child map to our child map
- maChildMap[xCell] = xAccessibleCell;
+ maChildMap[xCell] = std::move(xAccessibleCell);
aTempChildMap.erase( iter );
}
else
@@ -276,7 +276,7 @@ void SAL_CALL AccessibleTableShapeImpl::modified( const EventObject& /*aEvent*/
rtl::Reference< AccessibleCell > xAccessibleCell( new AccessibleCell( mxAccessible, xCell, nChildIndex, mrShapeTreeInfo ) );
xAccessibleCell->Init();
- maChildMap[xCell] = xAccessibleCell;
+ maChildMap[xCell] = std::move(xAccessibleCell);
}
++nChildIndex;
diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx
index 83facdaaaa99..184eaa13cfb4 100644
--- a/svx/source/table/tablemodel.cxx
+++ b/svx/source/table/tablemodel.cxx
@@ -598,7 +598,7 @@ void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount )
{
TableColumnRef xNewCol( new TableColumn( this, nIndex+nOffset ) );
maColumns[nIndex+nOffset] = xNewCol;
- aNewColumns[nOffset] = xNewCol;
+ aNewColumns[nOffset] = std::move(xNewCol);
}
const bool bUndo(mpTableObj->IsInserted() && rModel.IsUndoEnabled());
@@ -788,7 +788,7 @@ void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount )
{
TableRowRef xNewRow( new TableRow( this, nIndex+nOffset, nColCount ) );
maRows[nIndex+nOffset] = xNewRow;
- aNewRows[nOffset] = xNewRow;
+ aNewRows[nOffset] = std::move(xNewRow);
}
if( bUndo )
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 9bf61e49af53..dea32b511d39 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -177,7 +177,7 @@ void SAL_CALL SvxDrawPage::add( const uno::Reference< drawing::XShape >& xShape
pClonedSdrShape->setUnoShape(pShape);
// pShape->InvalidateSdrObject();
// pShape->Create(pClonedSdrShape, this);
- pObj = pClonedSdrShape;
+ pObj = std::move(pClonedSdrShape);
bNeededToClone = true;
}