diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-22 14:08:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-23 14:00:08 +0100 |
commit | ec1c4c49301758c54394f9943252e192ad54638b (patch) | |
tree | b53af3cb9154a388495b1af35c3f8ff41d6ebe1f /starmath | |
parent | db0f2c29bf3a6ad5a08f8524ea0e65aa90792bb2 (diff) |
O[U]String::replaceAt overloads that take string_view
which results in lots of nice string_view improvements picked up by the
plugins
Change-Id: Ib0ec3887816b3d4436d003b739d9814f83e244b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125657
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index cea9fff62b35..6eb1213071cb 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1114,7 +1114,7 @@ Size SmViewShell::GetTextSize(OutputDevice const & rDevice, const OUString& rTex } aText = aLine.copy(0, m); - aLine = aLine.replaceAt(0, m, ""); + aLine = aLine.replaceAt(0, m, u""); aSize = GetTextLineSize(rDevice, aText); aTextSize.AdjustHeight(aSize.Height() ); aTextSize.setWidth( std::clamp(aSize.Width(), aTextSize.Width(), MaxWidth) ); @@ -1194,7 +1194,7 @@ void SmViewShell::DrawText(OutputDevice& rDevice, const Point& rPosition, const } } aText = aLine.copy(0, m); - aLine = aLine.replaceAt(0, m, ""); + aLine = aLine.replaceAt(0, m, u""); DrawTextLine(rDevice, aPoint, aText); aPoint.AdjustY(aSize.Height() ); @@ -1781,7 +1781,7 @@ void SmViewShell::Execute(SfxRequest& rReq) } if ( bForceUTF16 ) { - OUString aNewString = aString.replaceAt( nPosL,nPosU-nPosL,"UTF-16"); + OUString aNewString = aString.replaceAt( nPosL, nPosU-nPosL, u"UTF-16"); pStrm.reset(new SvMemoryStream( const_cast<sal_Unicode *>(aNewString.getStr()), aNewString.getLength() * sizeof(sal_Unicode), StreamMode::READ)); } else |