From df6b4f98d3d87ef27b181c524131a8864f694caa Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 11 Mar 2013 21:43:38 +0100 Subject: unotools: use return value of copy() Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847 --- unotools/source/misc/fontdefs.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools') diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx index 35fe5351e726..fb243254089b 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; } -- cgit