summaryrefslogtreecommitdiff
path: root/unotools/inc
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 /unotools/inc
parentffbd3846d40eaf3dc8e8fa37e57d48ff7da88a5b (diff)
simplify LocalFileHelper::ConvertURLToPhysicalName
Diffstat (limited to 'unotools/inc')
-rw-r--r--unotools/inc/unotools/localfilehelper.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/unotools/inc/unotools/localfilehelper.hxx b/unotools/inc/unotools/localfilehelper.hxx
index ebccc43d090c..9feed581d46e 100644
--- a/unotools/inc/unotools/localfilehelper.hxx
+++ b/unotools/inc/unotools/localfilehelper.hxx
@@ -44,7 +44,7 @@ namespace utl
If no UCP is available for the local file system, sal_False and an empty URL is returned.
Returning sal_True and an empty URL means that the URL doesn't point to a local file.
*/
- static sal_Bool ConvertPhysicalNameToURL( const String& rName, String& rReturn );
+ static bool ConvertPhysicalNameToURL(const rtl::OUString& rName, rtl::OUString& rReturn);
static sal_Bool ConvertSystemPathToURL( const String& rName, const String& rBaseURL, String& rReturn );
/**
@@ -53,12 +53,11 @@ namespace utl
otherwise sal_True and a valid URL, because a file name can always be converted if a UCP for the local
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 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 );
- static sal_Bool IsFileContent( const String& rName );
+ static sal_Bool IsLocalFile(const rtl::OUString& rName);
+ static sal_Bool IsFileContent(const rtl::OUString& rName);
static ::com::sun::star::uno::Sequence< ::rtl::OUString >
GetFolderContents( const ::rtl::OUString& rFolder, sal_Bool bFolder );