[Libreoffice-commits] core.git: sdext/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sat Aug 29 06:14:16 UTC 2020


 sdext/source/pdfimport/tree/drawtreevisiting.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8029d316d89a6a4ca612e136697532d0accc22fb
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 27 19:05:52 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 29 08:13:33 2020 +0200

    Simplify OUStringBuffer to OUString conversion
    
    Change-Id: I9bd7722ebe7e29a1b68037c80e8d1c2c49d7984c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101572
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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<TextElement*>(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 );


More information about the Libreoffice-commits mailing list