diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-01 14:04:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-04 15:12:32 +0200 |
commit | ac33020ea870fc137fd8ee80cbd6c79310b260ad (patch) | |
tree | 11e42e3e5de9505fffcedf3be3c56721a4eb8b43 /editeng | |
parent | d6a363d83011ce3f195b96816e25dd749772cc24 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unotext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |