svx/source/form/datanavi.cxx | 2 +- sw/source/uibase/shells/grfshex.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 25d4fae8d3f69dc4d03c1a04233e6ed670742ed5 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Dec 23 14:00:26 2023 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Dec 23 16:03:30 2023 +0100 cid#1546064 COPY_INSTEAD_OF_MOVE and cid#1546034 COPY_INSTEAD_OF_MOVE Change-Id: If533400b570f20d80f1c41431ceba81579e0e25d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161242 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 0178a82c5947..9116c0eb075f 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -306,7 +306,7 @@ namespace svxform // tdf#154535 create the OXFormsDescriptor on-demand so we don't cause an unwanted // Binding to be created unless we are forced to. - auto fnCreateFormsDescriptor = [this, szName, xNode, xPropSet](){ + auto fnCreateFormsDescriptor = [this, szName=std::move(szName), xNode=std::move(xNode), xPropSet=std::move(xPropSet)](){ OXFormsDescriptor desc; desc.szName = szName; if (xNode) { diff --git a/sw/source/uibase/shells/grfshex.cxx b/sw/source/uibase/shells/grfshex.cxx index 45d40764525b..a9af8799b009 100644 --- a/sw/source/uibase/shells/grfshex.cxx +++ b/sw/source/uibase/shells/grfshex.cxx @@ -80,7 +80,7 @@ bool SwTextShell::InsertMediaDlg( SfxRequest const & rReq ) css::uno::Reference<css::frame::XDispatchProvider> xDispatchProvider(GetView().GetViewFrame().GetFrame().GetFrameInterface(), css::uno::UNO_QUERY); rtl::Reference<avmedia::PlayerListener> xPlayerListener(new avmedia::PlayerListener( - [xDispatchProvider, aURL, bLink](const css::uno::Reference<css::media::XPlayer>& rPlayer){ + [xDispatchProvider=std::move(xDispatchProvider), aURL, bLink](const css::uno::Reference<css::media::XPlayer>& rPlayer){ css::awt::Size aSize = rPlayer->getPreferredPlayerWindowSize(); avmedia::MediaWindow::dispatchInsertAVMedia(xDispatchProvider, aSize, aURL, bLink); }));