summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/main/ChartController_Tools.cxx2
-rw-r--r--chart2/source/controller/main/ShapeController.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index a988f6ed9a6b..e61011ae0a77 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -425,7 +425,7 @@ void ChartController::impl_PasteShapes( SdrModel* pModel )
pDestPage->InsertObject( pNewObj.get() );
m_pDrawViewWrapper->AddUndo( std::make_unique<SdrUndoInsertObj>( *pNewObj ) );
- xSelShape = xShape;
+ xSelShape = std::move(xShape);
}
}
}
diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx
index cdcc016541bf..05f78367d66d 100644
--- a/chart2/source/controller/main/ShapeController.cxx
+++ b/chart2/source/controller/main/ShapeController.cxx
@@ -585,7 +585,7 @@ SdrObject* ShapeController::getFirstAdditionalShape()
{
if ( xShape.is() && xShape != xChartRoot )
{
- xFirstShape = xShape;
+ xFirstShape = std::move(xShape);
break;
}
}