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

Julien Nabet serval2412 at yahoo.fr
Sat Sep 7 23:32:21 PDT 2013


 sd/source/filter/html/htmlex.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6fac2b8d7cdef8f19ce8fceb321cbee1548ad5b8
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Sep 8 08:31:53 2013 +0200

    Copy and replace return values must be used
    
    Change-Id: I454a7878d56213b99f240f9912bdc9453e7dfe40

diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index bad91df..d94a761 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -2143,7 +2143,7 @@ OUString HtmlExport::getDocumentTitle()
                 }
             }
 
-            mDocTitle.replace(0xff, ' ');
+            mDocTitle = mDocTitle.replace(0xff, ' ');
         }
 
         if (mDocTitle.isEmpty())
@@ -2151,7 +2151,7 @@ OUString HtmlExport::getDocumentTitle()
             mDocTitle = maDocFileName;
             sal_Int32 nDot = mDocTitle.indexOf('.');
             if (nDot > 0)
-                mDocTitle.copy(0, nDot);
+                mDocTitle = mDocTitle.copy(0, nDot);
         }
         mbHeader = true;
     }


More information about the Libreoffice-commits mailing list