summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file_misc.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-24 11:53:39 +0300
committerTor Lillqvist <tml@iki.fi>2013-08-24 12:26:03 +0300
commit4cebcbedfe56a869e54a61f7023275dd6b426ca4 (patch)
tree0b352794bdf6d2bca418631ff69505fd7ccb43f0 /sal/osl/unx/file_misc.cxx
parent3e8c8728967bab1aca1892b55af1497ceccaf67b (diff)
Simplify osl_getSystemPathFromFileURL_Ex()
It was always called with the bAllowRelative parameter as false anyway. Change-Id: I6c4bf739e3f8c1d52dbe8af5df13e97dc9be96e5
Diffstat (limited to 'sal/osl/unx/file_misc.cxx')
-rw-r--r--sal/osl/unx/file_misc.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index b262d84185df..0ee3a66c1bb2 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -145,7 +145,7 @@ oslFileError SAL_CALL osl_openDirectory(rtl_uString* ustrDirectoryURL, oslDirect
return osl_File_E_INVAL;
/* convert file URL to system path */
- eRet = osl_getSystemPathFromFileURL_Ex(ustrDirectoryURL, &ustrSystemPath, sal_False);
+ eRet = osl_getSystemPathFromFileURL_Ex(ustrDirectoryURL, &ustrSystemPath);
if( osl_File_E_None != eRet )
return eRet;
@@ -355,7 +355,7 @@ oslFileError SAL_CALL osl_getDirectoryItem( rtl_uString* ustrFileURL, oslDirecto
if ((0 == ustrFileURL) || (0 == ustrFileURL->length) || (0 == pItem))
return osl_File_E_INVAL;
- osl_error = osl_getSystemPathFromFileURL_Ex(ustrFileURL, &ustrSystemPath, sal_False);
+ osl_error = osl_getSystemPathFromFileURL_Ex(ustrFileURL, &ustrSystemPath);
if (osl_File_E_None != osl_error)
return osl_error;
@@ -541,8 +541,7 @@ oslFileError SAL_CALL osl_createDirectoryPath(
return osl_File_E_INVAL;
rtl::OUString sys_path;
- oslFileError osl_error = osl_getSystemPathFromFileURL_Ex(
- aDirectoryUrl, &sys_path.pData, sal_False);
+ oslFileError osl_error = osl_getSystemPathFromFileURL_Ex(aDirectoryUrl, &sys_path.pData);
if (osl_error != osl_File_E_None)
return osl_error;