summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-09 21:05:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 10:09:28 +0000
commit3c62fbcdd78e472d3dde604eff33be54cb3e21be (patch)
tree12a45fa393c2ce35a1fdff7efc0a63ef7600b7cd /sot
parentffbd3846d40eaf3dc8e8fa37e57d48ff7da88a5b (diff)
simplify LocalFileHelper::ConvertURLToPhysicalName
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/storage.cxx4
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 897f9fe7a61b..d6a5f53b06d1 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -519,7 +519,7 @@ void SotStorage::CreateStorage( sal_Bool bForceUCBStorage, StreamMode nMode, Sto
INetURLObject aObj( m_aName );
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{
- String aURL;
+ rtl::OUString aURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( m_aName, aURL );
aObj.SetURL( aURL );
m_aName = aObj.GetMainURL( INetURLObject::NO_DECODE );
@@ -738,7 +738,7 @@ sal_Bool SotStorage::IsStorageFile( const String & rFileName )
INetURLObject aObj( aName );
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{
- String aURL;
+ rtl::OUString aURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aURL );
aObj.SetURL( aURL );
aName = aObj.GetMainURL( INetURLObject::NO_DECODE );
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index bc2f10004955..c1981aa2fc99 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -3217,7 +3217,7 @@ sal_Bool UCBStorage::Equals( const BaseStorage& rStorage ) const
sal_Bool UCBStorage::IsStorageFile( const String& rFileName )
{
- String aFileURL = rFileName;
+ rtl::OUString aFileURL = rFileName;
INetURLObject aObj( aFileURL );
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{