From f7c3e35a9d28a1294d635f714f20933572f12e4d Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 26 Jan 2020 10:10:07 +0100 Subject: [PATCH] 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 --- sal/qa/osl/file/osl_File.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index dabe4e09e15f..32a9509dd00d 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -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);