tdf#163486: PVS: variable is used after it was moved
Since
commit 9fe2ead3d5
Author: Noel Grandin <noel.grandin@collabora.co.uk>
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 <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
f6a539cb5f
commit
08c04a589a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue