From 8f40e90fdf03fe47f1b49d1f4ce15da85998eb0d Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 11 Jul 2017 07:57:40 +0200 Subject: [PATCH] Small cleanup Change-Id: I68ffa3f79df0acf484868c13817d76582edd7a41 Reviewed-on: https://gerrit.libreoffice.org/39790 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- writerfilter/source/dmapper/DomainMapper.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 92bcdc30f969..9c61c5365161 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -3218,10 +3218,7 @@ void DomainMapper::lcl_positivePercentage(const OUString& rText) void DomainMapper::lcl_utext(const sal_uInt8 * data_, size_t len) { - OUString sText; - OUStringBuffer aBuffer = OUStringBuffer(sal::static_int_cast(len)); - aBuffer.append( reinterpret_cast(data_), len); - sText = aBuffer.makeStringAndClear(); + OUString sText(reinterpret_cast(data_), len); const RubyInfo & aInfo = m_pImpl->GetRubyInfo(); if (aInfo.nSprmId == NS_ooxml::LN_CT_Ruby_rt) {