[Libreoffice-commits] core.git: writerfilter/source
Mike Kaganski
mike.kaganski at collabora.com
Tue Jul 11 17:14:23 UTC 2017
writerfilter/source/dmapper/DomainMapper.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 8f40e90fdf03fe47f1b49d1f4ce15da85998eb0d
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Tue Jul 11 07:57:40 2017 +0200
Small cleanup
Change-Id: I68ffa3f79df0acf484868c13817d76582edd7a41
Reviewed-on: https://gerrit.libreoffice.org/39790
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
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<int>(len));
- aBuffer.append( reinterpret_cast<const sal_Unicode *>(data_), len);
- sText = aBuffer.makeStringAndClear();
+ OUString sText(reinterpret_cast<const sal_Unicode *>(data_), len);
const RubyInfo & aInfo = m_pImpl->GetRubyInfo();
if (aInfo.nSprmId == NS_ooxml::LN_CT_Ruby_rt)
{
More information about the Libreoffice-commits
mailing list