diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:27:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:27:22 +0200 |
commit | 30b089fe491b391931470e960b4af2ccaca9408a (patch) | |
tree | 268669b4faa689c048abe489ac4581c846ebe80c /sal/qa | |
parent | e56bec5ccd7bdd91e0389381dc4e2f1e48f2c32d (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ibd373cddb1e25f05528e627349953b5f7d115330
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/file/test_cpy_wrt_file.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/module/osl_Module.cxx | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 2b5766225ac1..60ed44ac839d 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -3546,7 +3546,7 @@ namespace osl_File char buffer[50000]; sal_uInt64 written = 0; - nError1 = tmp_file.write((void*)buffer, sizeof(buffer), written); + nError1 = tmp_file.write(static_cast<void*>(buffer), sizeof(buffer), written); CPPUNIT_ASSERT_MESSAGE("write failed!", nError1 == FileBase::E_None); //set the file to readonly diff --git a/sal/qa/osl/file/test_cpy_wrt_file.cxx b/sal/qa/osl/file/test_cpy_wrt_file.cxx index 2eb0083535ee..4dc3fe19a489 100644 --- a/sal/qa/osl/file/test_cpy_wrt_file.cxx +++ b/sal/qa/osl/file/test_cpy_wrt_file.cxx @@ -54,7 +54,7 @@ public: char buffer[1]; sal_uInt64 written = 0; - err = tmp_file.write((void*)buffer, sizeof(buffer), written); + err = tmp_file.write(static_cast<void*>(buffer), sizeof(buffer), written); CPPUNIT_ASSERT_MESSAGE("write on unconnected file should fail", err != osl::FileBase::E_None && written == 0); diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx index 56f781069f28..9f6e8ae64742 100644 --- a/sal/qa/osl/module/osl_Module.cxx +++ b/sal/qa/osl/module/osl_Module.cxx @@ -287,10 +287,10 @@ namespace osl_Module #if !defined( MACOSX ) // TODO: Find out why this fails on Mac OS X ::osl::Module aMod; - bRes = ( (oslModule)aMod == NULL ); + bRes = ( static_cast<oslModule>(aMod) == NULL ); aMod.load( getDllURL( ) ); - bRes1 = (oslModule)aMod != NULL; + bRes1 = static_cast<oslModule>(aMod) != NULL; aMod.unload( ); @@ -306,7 +306,7 @@ namespace osl_Module ::osl::Module aMod( getDllURL( ) ); ::rtl::OUString funcName( "firstfunc" ); - FuncPtr pFunc = reinterpret_cast<FuncPtr>(osl_getSymbol( (oslModule)aMod, funcName.pData )); + FuncPtr pFunc = reinterpret_cast<FuncPtr>(osl_getSymbol( static_cast<oslModule>(aMod), funcName.pData )); bRes = false; if ( pFunc ) bRes = pFunc( bRes ); |