diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-16 08:36:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-17 09:05:24 +0200 |
commit | 6941b7c8e4459e1c3e0213a8ad9e9e5d0d591c22 (patch) | |
tree | 990e51d8dc15d73d30856e34fdcf8d3a3105dc9f /fileaccess | |
parent | 7865b9762da6d8b3c45cc08df1f3da3f3179b29f (diff) |
convert FILEACCESS module from String to OUString
Change-Id: If3dd7564e2931691062ce209784aaab6eddc6d9e
Diffstat (limited to 'fileaccess')
-rw-r--r-- | fileaccess/source/FileAccess.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fileaccess/source/FileAccess.cxx b/fileaccess/source/FileAccess.cxx index 6255442ec3ff..da2dbcb3d5a0 100644 --- a/fileaccess/source/FileAccess.cxx +++ b/fileaccess/source/FileAccess.cxx @@ -228,10 +228,10 @@ void OFileAccess::transferImpl( const OUString& rSource, // SfxContentHelper::Transfer_Impl INetURLObject aSourceObj( rSource, INET_PROT_FILE ); INetURLObject aDestObj( rDest, INET_PROT_FILE ); - String aName = aDestObj.getName( + OUString aName = aDestObj.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); - String aDestURL; - String aSourceURL = aSourceObj.GetMainURL( INetURLObject::NO_DECODE ); + OUString aDestURL; + OUString aSourceURL = aSourceObj.GetMainURL( INetURLObject::NO_DECODE ); if ( aDestObj.removeSegment() ) { // hierarchical URL. @@ -367,13 +367,13 @@ void OFileAccess::createFolder( const OUString& NewFolderURL ) // SfxContentHelper::MakeFolder INetURLObject aURL( NewFolderURL, INET_PROT_FILE ); - String aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); - if ( aTitle.Len() ) + OUString aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); + if ( !aTitle.isEmpty() ) { aURL.removeSegment(); // Does the base folder exist? Otherwise create it first - String aBaseFolderURLStr = aURL.GetMainURL( INetURLObject::NO_DECODE ); + OUString aBaseFolderURLStr = aURL.GetMainURL( INetURLObject::NO_DECODE ); if( !isFolder( aBaseFolderURLStr ) ) { createFolder( aBaseFolderURLStr ); @@ -731,14 +731,14 @@ void SAL_CALL OFileAccess::writeFile( const OUString& FileURL, INetURLObject aParentURLObj( aURL ); if ( aParentURLObj.removeSegment() ) { - String aParentURL + OUString aParentURL = aParentURLObj.GetMainURL( INetURLObject::NO_DECODE ); // ensure all parent folders exist. createFolder( aParentURL ); // create the new file... - String aTitle + OUString aTitle = aURL.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); |