diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-03 04:41:37 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-04-03 23:27:39 +0200 |
commit | 9c22cf54a942311f554d5e9c82e93b5cec7edc2c (patch) | |
tree | 9a4e8008e69d3cc595da9fd6dc4a507494f79ed4 /sfx2 | |
parent | f6f836b693a9e04c9fa52dd8883a0da54f011dcf (diff) |
simplify this a bit
Change-Id: I4deaf117c64f4646e36da98c498188022b2c32f0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 5e96afc9ffe6..4a6a39ce3660 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -264,10 +264,8 @@ OUString SfxContentHelper::GetActiveHelpString( const OUString& rURL ) sal_Int32 nRead = xStream->readBytes( lData, 1024 ); while ( nRead > 0 ) { - OStringBuffer sBuffer( nRead ); - for( sal_Int32 i = 0; i < nRead; ++i ) - sBuffer.append( (sal_Char)lData[i] ); - OUString sString = OStringToOUString( sBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ); + OString sOldString( (sal_Char*)lData.getConstArray(), nRead ); + OUString sString = OStringToOUString( sOldString, RTL_TEXTENCODING_UTF8 ); aRet.append( sString ); nRead = xStream->readBytes( lData, 1024 ); |