From a6a95c0ce4334fda99cba0528d08207a7514e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 4 Jul 2024 09:00:09 +0100 Subject: [PATCH] cid#1608568 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7509b0033855c66324d655b66bef9cc14f5e8074 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169980 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- embeddedobj/source/commonembedding/persistence.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx index 0abb340f4d32..c72d788e3d04 100644 --- a/embeddedobj/source/commonembedding/persistence.cxx +++ b/embeddedobj/source/commonembedding/persistence.cxx @@ -375,7 +375,7 @@ bool OCommonEmbeddedObject::getAllowLinkUpdate() const uno::Reference xGrandParent(xParent->getParent(), uno::UNO_QUERY); if (!xGrandParent) break; - xParent = xGrandParent; + xParent = std::move(xGrandParent); } uno::Reference xPropSet(xParent, uno::UNO_QUERY);