diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-07 08:35:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 08:25:33 +0200 |
commit | 9d307abeec2a80e59af0f0af10dc42d90cd7441a (patch) | |
tree | ab939f6c7d0d65d0419fbe305bbc1501f1faceb8 /sal | |
parent | 12fb9096f562281c7ca4b7fed6a3342dac9a91b7 (diff) |
new loplugin: defaultparams
find places where we do not need to be passing a parameter to a
function, because that function has a default value which matches the
value we are passing.
Change-Id: I04d1fd6275204dd4925e6563282464f461123632
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index dbb9b123e980..b391f69f3243 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -355,7 +355,7 @@ inline bool checkDirectory( const ::rtl::OUString & str, oslCheckMode nCheckMode break; case osl_Check_Mode_ReadAccess: //rc = pDir->getNextItem( rItem, 0 ); - rc = aDir.getNextItem( rItem, 0 ); + rc = aDir.getNextItem( rItem ); if ( ( rc == ::osl::FileBase::E_None ) || ( rc == ::osl::FileBase::E_NOENT ) ) bCheckResult = true; else @@ -1255,7 +1255,7 @@ namespace osl_FileStatus Directory pDir( aTmpName3 ); nError1 = pDir.open(); CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - nError1 = pDir.getNextItem( rItem, 0 ); + nError1 = pDir.getNextItem( rItem ); CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); pDir.close(); /* @@ -4228,7 +4228,7 @@ namespace osl_Directory nError2 = testDirectory.reset(); CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); //get reseted Item, if reset does not work, getNextItem() should return the second Item (aTmpName1) - nError1 = testDirectory.getNextItem( rItem, 0 ); + nError1 = testDirectory.getNextItem( rItem ); CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); //check the file name again |