diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-25 14:24:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-25 18:43:52 +0200 |
commit | e810bd2b99777e192fb464572fa64a34bc0768fe (patch) | |
tree | 22e209b88814242c1914931dff28112cbf8c0e6f /sd | |
parent | 578758835e700b38b167753ccda9527f3a8cc43b (diff) |
merge some stringadds
found with a lightly tweaked version of the loplugin:stringadd
and some hand-holding.
Change-Id: I146aadcaf665e98fea89a9cad2df4dc3935622f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152275
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 37e41a594aec..7c526539d9ee 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -1412,10 +1412,8 @@ OUString HtmlExport::ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_I SfxItemSet aSet( rEditEngine.GetAttribs( aSelection ) ); - OUString aPortion(StringToHTMLString(rEditEngine.GetText( aSelection ))); - - aStr.append(TextAttribToHTMLString( &aSet, &aState, rBackgroundColor )); - aStr.append(aPortion); + aStr.append(TextAttribToHTMLString( &aSet, &aState, rBackgroundColor ) + + StringToHTMLString(rEditEngine.GetText( aSelection ))); nPos1 = nPos2; } @@ -1569,9 +1567,9 @@ bool HtmlExport::CreateHtmlForPresPages() } // HTML Head - OUStringBuffer aStr(gaHTMLHeader); - aStr.append(CreateMetaCharset()); - aStr.append(" <title>" + StringToHTMLString(maPageNames[nSdPage]) + "</title>\r\n"); + OUStringBuffer aStr(gaHTMLHeader + + CreateMetaCharset() + + " <title>" + StringToHTMLString(maPageNames[nSdPage]) + "</title>\r\n"); // insert timing information pPage = maPages[ nSdPage ]; @@ -2612,8 +2610,7 @@ OUString HtmlExport::CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const // to Index page if (mbContentsPage) { - aStr.append(CreateLink(maIndex, aStrNavContent)); - aStr.append(' '); + aStr.append(CreateLink(maIndex, aStrNavContent) + " "); } // Text/Graphics |