diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-11 21:43:38 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-11 21:43:38 +0100 |
commit | df6b4f98d3d87ef27b181c524131a8864f694caa (patch) | |
tree | 425d5ee47fced3296218f62086c21e78b55d67b8 /unotools | |
parent | basic: translation of all debug messages (diff) | |
download | core-df6b4f98d3d87ef27b181c524131a8864f694caa.tar.gz core-df6b4f98d3d87ef27b181c524131a8864f694caa.zip |
unotools: use return value of copy()
Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/misc/fontdefs.cxx | 4 |
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; } |