cppcheck: shadowFunction in sal/osl_File

Change-Id: I7d264faad080428459e499c786f25b3e06a6700b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87434
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Julien Nabet
2020-01-26 10:10:07 +01:00
committed by Noel Grandin
parent 22d2ad9135
commit f7c3e35a9d

View File

@@ -1088,14 +1088,14 @@ namespace osl_FileBase
void searchFileURL_002()
{
/* search file is passed by system filename */
OUString aRootSys = INetURLObject(aTempDirectoryURL).GetLastName();
nError1 = osl::FileBase::searchFileURL(aTempDirectorySys, aRootSys, aUStr);
OUString strRootSys = INetURLObject(aTempDirectoryURL).GetLastName();
nError1 = osl::FileBase::searchFileURL(aTempDirectorySys, strRootSys, aUStr);
bool bOk1 = compareFileName(aUStr, aTempDirectoryURL);
/* search file is passed by full qualified file URL */
nError2 = osl::FileBase::searchFileURL(aTempDirectoryURL, aRootSys, aUStr);
nError2 = osl::FileBase::searchFileURL(aTempDirectoryURL, strRootSys, aUStr);
bool bOk2 = compareFileName(aUStr, aTempDirectoryURL);
/* search file is passed by relative file path */
nError3 = osl::FileBase::searchFileURL(aRelURL5, aRootSys, aUStr);
nError3 = osl::FileBase::searchFileURL(aRelURL5, strRootSys, aUStr);
bool bOk3 = compareFileName(aUStr, aTempDirectoryURL);
/* search file is passed by an exist file */
createTestFile(aCanURL1);