From 8029d316d89a6a4ca612e136697532d0accc22fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 27 Aug 2020 19:05:52 +0200 Subject: Simplify OUStringBuffer to OUString conversion Change-Id: I9bd7722ebe7e29a1b68037c80e8d1c2c49d7984c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101572 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sdext/source/pdfimport/tree/drawtreevisiting.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 305470101cec..387da6947c68 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -102,7 +102,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< std::unique_ptr< m_rEmitContext.rStyles.getStyleName( elem.StyleId ); } - OUString str(elem.Text.getStr()); + OUString str(elem.Text.toString()); // Check for RTL bool isRTL = false; @@ -676,7 +676,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent) { TextElement* pNext = dynamic_cast(next->get()); bool isComplex = false; - OUString str(pCur->Text.getStr()); + OUString str(pCur->Text.toString()); for(int i=0; i< str.getLength(); i++) { sal_Int16 nType = GetBreakIterator()->getScriptType( str, i ); @@ -708,7 +708,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent) // append text to current element pCur->Text.append( pNext->Text ); - str = pCur->Text.getStr(); + str = pCur->Text.toString(); for(int i=0; i< str.getLength(); i++) { sal_Int16 nType = GetBreakIterator()->getScriptType( str, i ); -- cgit