sw/source/core/text/guess.cxx | 2 +- sw/source/core/text/portxt.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9c82191e7b395b79d3370af9edfac99b247791d5 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Apr 20 12:45:48 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Apr 20 22:14:45 2025 +0200 cid#1646569 Use of auto that causes a copy and cid#1646559 Use of auto that causes a copy Change-Id: I2c79f76d14cbd03444c2dcba4088f0e73ac0c64c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184382 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx index 3f90b3f13db6..6057fd6f45d8 100644 --- a/sw/source/core/text/guess.cxx +++ b/sw/source/core/text/guess.cxx @@ -181,7 +181,7 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf, SwTwips nLineWidth = rInf.GetLineWidth(); TextFrameIndex nMaxLen = TextFrameIndex(rInf.GetText().getLength()) - rInf.GetIdx(); - auto aAdjustItem = rInf.GetTextFrame()->GetTextNodeForParaProps()->GetSwAttrSet().GetAdjust(); + SvxAdjustItem aAdjustItem = rInf.GetTextFrame()->GetTextNodeForParaProps()->GetSwAttrSet().GetAdjust(); const SvxAdjust aAdjust = aAdjustItem.GetAdjust(); // allow up to 20% shrinking of the spaces diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx index 2fa74bb87b2d..eb1b538936c5 100644 --- a/sw/source/core/text/portxt.cxx +++ b/sw/source/core/text/portxt.cxx @@ -363,7 +363,7 @@ bool SwTextPortion::Format_( SwTextFormatInfo &rInf ) // tdf#158776 for the last full text portion, call Guess() again to allow more text in the // adjusted line by shrinking spaces using the know space count from the first Guess() call - auto aAdjustItem = rInf.GetTextFrame()->GetTextNodeForParaProps()->GetSwAttrSet().GetAdjust(); + SvxAdjustItem aAdjustItem = rInf.GetTextFrame()->GetTextNodeForParaProps()->GetSwAttrSet().GetAdjust(); const SvxAdjust aAdjust = aAdjustItem.GetAdjust(); if ( bFull && aAdjust == SvxAdjust::Block && pGuess->BreakPos() != TextFrameIndex(COMPLETE_STRING) &&