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

Thomas Arnhold thomas at arnhold.org
Mon Mar 11 13:44:15 PDT 2013


 unotools/source/misc/fontdefs.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit df6b4f98d3d87ef27b181c524131a8864f694caa
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Mon Mar 11 21:43:38 2013 +0100

    unotools: use return value of copy()
    
    Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847

diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index 35fe535..fb24325 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -332,7 +332,7 @@ void GetEnglishSearchFontName( OUString& rName )
     while ( i && (rName[ i-1 ] < 32) )
         i--;
     if ( i != nLen )
-        rName.copy( 0, i );
+        rName = rName.copy( 0, i );
 
     // Remove Script at the end
     // Scriptname must be the last part of the fontname and
@@ -352,7 +352,7 @@ void GetEnglishSearchFontName( OUString& rName )
                     // Remove Space at the end
                     if ( nTempLen && (rName[ nTempLen-1 ] == ' ') )
                         nTempLen--;
-                    rName.copy( 0, nTempLen );
+                    rName = rName.copy( 0, nTempLen );
                     nLen = nTempLen;
                     break;
                 }


More information about the Libreoffice-commits mailing list