diff options
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 ); |