From 4583911575edf98ccd5b15af8eafa6a3a7b64034 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Jun 2019 12:14:08 +0200 Subject: improve loplugin:simplifyconstruct Change-Id: If863d28c6db470faa0d22273020888d4219e069e Reviewed-on: https://gerrit.libreoffice.org/74559 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lotuswordpro/source/filter/lwpdrawobj.cxx | 4 ++-- lotuswordpro/source/filter/lwptablelayout.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index 45637de0c32c..38e8c3162f08 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -1061,7 +1061,7 @@ OUString LwpDrawTextBox::RegisterStyle() // the pFont need to be deleted myself? rtl::Reference pFont = new XFFont(); - OUString aFontName = OUString(reinterpret_cast(m_aTextRec.tmpTextFaceName), + OUString aFontName(reinterpret_cast(m_aTextRec.tmpTextFaceName), strlen(reinterpret_cast(m_aTextRec.tmpTextFaceName)), RTL_TEXTENCODING_MS_1252); pFont->SetFontName(aFontName); @@ -1265,7 +1265,7 @@ OUString LwpDrawTextArt::RegisterStyle() // the pFont need to be deleted myself? rtl::Reference pFont = new XFFont(); - OUString aFontName = OUString(reinterpret_cast(m_aTextArtRec.tmpTextFaceName), + OUString aFontName(reinterpret_cast(m_aTextArtRec.tmpTextFaceName), strlen(reinterpret_cast(m_aTextArtRec.tmpTextFaceName)), RTL_TEXTENCODING_MS_1252); pFont->SetFontName(aFontName); diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index 48e4ee97837b..a49c4375858b 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -1206,7 +1206,7 @@ void LwpTableLayout::PostProcessParagraph(XFCell *pCell, sal_uInt16 nRowID, sal_ XFParagraph * pXFPara = static_cast(first.get()); if (!pXFPara) return; - XFColor aNullColor = XFColor(); + XFColor aNullColor; OUString sNumfmt = pCellLayout->GetNumfmtName(); bool bColorMod = false; -- cgit