tdf#163221 crash in dialog editor

regression from
commit 65d52af42f
clang-tidy: performance-unnecessary-copy-initialization in svx

Change-Id: I48428fe08acdf9590a533c7ea91abe905713b292
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177979
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-12-06 15:29:07 +02:00
parent afab0fa906
commit a60617b1f2

View file

@ -136,7 +136,7 @@ bool ViewObjectContactPrimitiveHit(
// get primitive sequence
sdr::contact::DisplayInfo aDisplayInfo;
// have to make a copy of this container here, because it might be changed underneath us
const drawinglayer::primitive2d::Primitive2DContainer& aSequence(rVOC.getPrimitive2DSequence(aDisplayInfo));
const drawinglayer::primitive2d::Primitive2DContainer aSequence(rVOC.getPrimitive2DSequence(aDisplayInfo));
if(!aSequence.empty())
{