From 08c04a589ad87274647e7bdb76957d5285eca116 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 19 Nov 2024 17:39:02 +0100 Subject: [PATCH] tdf#163486: PVS: variable is used after it was moved Since commit 9fe2ead3d5355224dd94d6462b0ddc6100f6d4e3 Author: Noel Grandin Date: Fri Oct 8 06:43:18 2021 +0200 loplugin:moveparam in svx V1030 The 'aSdrObjects' variable is used after it was moved. Change-Id: I9b426204ff2e2e2d0f6b375e201259765aa12736 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176785 Tested-by: Jenkins Reviewed-by: Noel Grandin Reviewed-by: Xisco Fauli --- svx/source/svdraw/svdxcgv.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx index ab4fa320275c..78d89e135ac7 100644 --- a/svx/source/svdraw/svdxcgv.cxx +++ b/svx/source/svdraw/svdxcgv.cxx @@ -705,7 +705,8 @@ void SdrExchangeView::DrawMarkedObj(OutputDevice& rOut) const if(!aSdrObjects.empty()) { - sdr::contact::ObjectContactOfObjListPainter aPainter(rOut, std::move(aSdrObjects), aSdrObjects[0]->getSdrPageFromSdrObject()); + SdrPage* pPage = aSdrObjects[0]->getSdrPageFromSdrObject(); + sdr::contact::ObjectContactOfObjListPainter aPainter(rOut, std::move(aSdrObjects), pPage); sdr::contact::DisplayInfo aDisplayInfo; // do processing