summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:10:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 08:26:49 +0200
commit03516c505eced337149782a67b2ad98c246929b3 (patch)
treec499c7912cf65ebbf13c729782a93adc3f856a55 /lotuswordpro
parent9b3643820bf821c8be728ed20a8cb7ed05cabef2 (diff)
loplugin:stringadd in helpcompiler..oox
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5 Reviewed-on: https://gerrit.libreoffice.org/79889 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx3
-rw-r--r--lotuswordpro/source/filter/xfilter/xffont.cxx9
2 files changed, 4 insertions, 8 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 10193e7c5d00..c6af01f6e34f 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -101,8 +101,7 @@ void LwpFormulaInfo::ReadText()
std::vector<char> aBuf(nStrLen + 1);
m_pObjStrm->QuickRead(aBuf.data(), nStrLen);
aBuf[nStrLen]= '\0';
- OUString aText;
- aText += "\"";
+ OUString aText = "\"";
aText += OUString(aBuf.data(), nStrLen, osl_getThreadTextEncoding());
aText += "\"";
diff --git a/lotuswordpro/source/filter/xfilter/xffont.cxx b/lotuswordpro/source/filter/xfilter/xffont.cxx
index 96259c5dafa8..8e906af25a47 100644
--- a/lotuswordpro/source/filter/xfilter/xffont.cxx
+++ b/lotuswordpro/source/filter/xfilter/xffont.cxx
@@ -209,20 +209,17 @@ void XFFont::ToXml(IXFStream *pStrm)
//font size:
if( (m_nFlag & XFFONT_FLAG_SIZE) && m_nFontSize != 0 )
{
- OUString strSize = OUString::number(m_nFontSize);
- strSize += "pt";
+ OUString strSize = OUString::number(m_nFontSize) + "pt";
pAttrList->AddAttribute("fo:font-size",strSize);
}
if( (m_nFlag & XFFONT_FLAG_SIZE_ASIA) && m_nFontSizeAsia )
{
- OUString strSize = OUString::number(m_nFontSizeAsia);
- strSize += "pt";
+ OUString strSize = OUString::number(m_nFontSizeAsia) + "pt";
pAttrList->AddAttribute("style:font-size-asian",strSize);
}
if( (m_nFlag & XFFONT_FLAG_SIZE_COMPLEX) && m_nFontSizeComplex )
{
- OUString strSize = OUString::number(m_nFontSizeComplex);
- strSize += "pt";
+ OUString strSize = OUString::number(m_nFontSizeComplex) + "pt";
pAttrList->AddAttribute("style:font-size-complex",strSize);
}