editeng/source/uno/unotext.cxx | 3 ++- xmloff/source/draw/shapeimport.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
New commits: commit ac33020ea870fc137fd8ee80cbd6c79310b260ad Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jul 1 14:04:34 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Jul 4 15:12:32 2022 +0200 tdf#137544 avoid some temporary OUString Change-Id: I4db4d12261920c94bf632f07fc129e3d324dd22e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136805 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index bf085c647c0e..14a7c9f9ef04 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1822,7 +1822,8 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text aRange.nEndPos = aRange.nStartPos; pRange->SetSelection( aRange ); - pRange->setString( "\x0D" ); + static constexpr OUStringLiteral CR = u"\x0D"; + pRange->setString( CR ); aRange.nStartPos = 0; aRange.nStartPara += 1; diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index 930051b2aeec..1a21953f39ff 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -466,7 +466,8 @@ void XMLShapeImportHelper::addShape( uno::Reference< drawing::XShape >& rShape, uno::Reference<beans::XPropertySet> xPropertySet(rShape, uno::UNO_QUERY); if (xPropertySet.is()) { - xPropertySet->setPropertyValue("HandlePathObjScale", uno::Any(true)); + static constexpr OUStringLiteral sHandlePathObjScale = u"HandlePathObjScale"; + xPropertySet->setPropertyValue(sHandlePathObjScale, uno::Any(true)); } } }