diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-02-22 15:19:38 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-02-22 21:11:10 +0400 |
commit | 3a5ae29f0d2f4467ec75803d6e3b5b461672428a (patch) | |
tree | c486124dcbbf7bff6f310e90904ddb6fb173796e /sfx2/source/bastyp | |
parent | f0cd6fe9075cd0aa00162474784ad804a07ed138 (diff) |
String -> OUString
Change-Id: I5b577a8e0675d7849ca22e24bb99ee2d8602ae6a
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index c97d92f10596..5e96afc9ffe6 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -248,9 +248,9 @@ uno::Sequence< OUString > SfxContentHelper::GetHelpTreeViewContents( const Strin // ----------------------------------------------------------------------- -String SfxContentHelper::GetActiveHelpString( const String& rURL ) +OUString SfxContentHelper::GetActiveHelpString( const OUString& rURL ) { - String aRet; + OUStringBuffer aRet; try { uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext(); @@ -268,7 +268,7 @@ String SfxContentHelper::GetActiveHelpString( const String& rURL ) for( sal_Int32 i = 0; i < nRead; ++i ) sBuffer.append( (sal_Char)lData[i] ); OUString sString = OStringToOUString( sBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ); - aRet += String( sString ); + aRet.append( sString ); nRead = xStream->readBytes( lData, 1024 ); } @@ -277,12 +277,12 @@ String SfxContentHelper::GetActiveHelpString( const String& rURL ) { } - return aRet; + return aRet.makeStringAndClear(); } // ----------------------------------------------------------------------- -sal_Bool SfxContentHelper::IsHelpErrorDocument( const String& rURL ) +sal_Bool SfxContentHelper::IsHelpErrorDocument( const OUString& rURL ) { sal_Bool bRet = sal_False; try |