summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-11 21:43:38 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-11 21:43:38 +0100
commitdf6b4f98d3d87ef27b181c524131a8864f694caa (patch)
tree425d5ee47fced3296218f62086c21e78b55d67b8 /unotools
parent59b5ff75745d3c784b7b999605bf50090ee64d34 (diff)
unotools: use return value of copy()
Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/fontdefs.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}