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 --- tools/source/inet/inetmime.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/source') diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index 14ad5b9d1485..97dcfc8a79ea 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -586,9 +586,7 @@ sal_Unicode const * scanParameters(sal_Unicode const * pBegin, } if (p == pAttributeBegin) break; - OString aAttribute = OString( - pAttributeBegin, p - pAttributeBegin, - RTL_TEXTENCODING_ASCII_US); + OString aAttribute(pAttributeBegin, p - pAttributeBegin, RTL_TEXTENCODING_ASCII_US); if (bDowncaseAttribute) aAttribute = aAttribute.toAsciiLowerCase(); -- cgit