diff options
-rw-r--r-- | editeng/source/uno/unotext.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 3 |
2 files changed, 4 insertions, 2 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; 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)); } } } |