From e6de84d46c2a41fc4ae53e2744d432e50c4a4ac1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jun 2022 09:13:02 +0200 Subject: std::move SfxPoolItem into SfxItemSet where possible found with the help of a temporary loplugin (which i have put into the store/ folder) Change-Id: Ide40d09bef6993ace50039a8fd0439b7e29c09a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135288 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/func/fuscale.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui/func/fuscale.cxx') diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 5d5c4c29d26a..d4730b243209 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -103,7 +103,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) } pZoomItem->SetValueSet( nZoomValues ); - aNewAttr.Put( *pZoomItem ); + aNewAttr.Put( std::move(pZoomItem) ); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); ScopedVclPtr pDlg(pFact->CreateSvxZoomDialog(rReq.GetFrameWeld(), aNewAttr)); -- cgit