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) {