diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-08 15:26:28 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-09 04:58:04 +0200 |
commit | 8445ce0e6185b575f1f4bf6bbc41d9eda2a5391b (patch) | |
tree | 34a0789d1f7f635f88c8c80e699dde76b0668e3a /unotools | |
parent | add range name xls test (diff) | |
download | core-8445ce0e6185b575f1f4bf6bbc41d9eda2a5391b.tar.gz core-8445ce0e6185b575f1f4bf6bbc41d9eda2a5391b.zip |
externalrefmgr.cxx is String free
String->rtl::OUString and solve problem with old patch
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/localfilehelper.hxx | 1 | ||||
-rw-r--r-- | unotools/source/ucbhelper/localfilehelper.cxx | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/unotools/inc/unotools/localfilehelper.hxx b/unotools/inc/unotools/localfilehelper.hxx index 08be26017cdc..634c7dea8d5b 100644 --- a/unotools/inc/unotools/localfilehelper.hxx +++ b/unotools/inc/unotools/localfilehelper.hxx @@ -55,6 +55,7 @@ public: file system is present ( watch: this doesn't mean that this file really exists! ) */ static sal_Bool ConvertURLToPhysicalName( const String& rName, String& rReturn ); + static bool ConvertURLToPhysicalName( const rtl::OUString& rName, rtl::OUString& rReturn ); static sal_Bool ConvertURLToSystemPath( const String& rName, String& rReturn ); static sal_Bool IsLocalFile( const String& rName ); diff --git a/unotools/source/ucbhelper/localfilehelper.cxx b/unotools/source/ucbhelper/localfilehelper.cxx index f1026f749f45..26b90a7913e4 100644 --- a/unotools/source/ucbhelper/localfilehelper.cxx +++ b/unotools/source/ucbhelper/localfilehelper.cxx @@ -131,6 +131,14 @@ sal_Bool LocalFileHelper::ConvertPhysicalNameToURL( const String& rName, String& return ( rReturn.Len() != 0 ); } +bool LocalFileHelper::ConvertURLToPhysicalName( const rtl::OUString& rName, rtl::OUString& rReturn ) +{ + String aReturn; + bool bReturn = ConvertURLToPhysicalName( rName, aReturn ); + rReturn = rtl::OUString( aReturn ); + return bReturn; +} + sal_Bool LocalFileHelper::ConvertURLToPhysicalName( const String& rName, String& rReturn ) { rReturn = ::rtl::OUString(); |