diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 19:01:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:50 +0100 |
commit | b70b4e644b5bb5356509505855418453dc621cfc (patch) | |
tree | 0a2441aa91947032d398b688f73553ff4d5a4afb /sal/qa/osl | |
parent | 2e160b1e0e5b28b8a6ddfa07fc6ffff1c6e590bc (diff) |
Some more loplugin:cstylecast: sal
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
Diffstat (limited to 'sal/qa/osl')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index e573d4a04a19..434c0b7dc5af 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -2941,7 +2941,7 @@ namespace osl_File CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); CPPUNIT_ASSERT_MESSAGE( "test for readLine function: read the first line of the file.", ( ::osl::FileBase::E_None == nError1 ) && - ( 0 == strncmp( ( const char * )aSequence.getArray(), pBuffer_Char, 5 ) ) ); + ( 0 == strncmp( reinterpret_cast<char *>(aSequence.getArray()), pBuffer_Char, 5 ) ) ); } void readLine_002() @@ -2962,7 +2962,7 @@ namespace osl_File CPPUNIT_ASSERT_MESSAGE( "test for readLine function: read three lines of the file and check the file pointer moving.", *pEOF && - ( 0 == strncmp( ( const char * )aSequence.getArray(), &pBuffer_Char[26], 26 ) ) ); + ( 0 == strncmp( reinterpret_cast<char *>(aSequence.getArray()), &pBuffer_Char[26], 26 ) ) ); } CPPUNIT_TEST_SUITE( readLine ); CPPUNIT_TEST( readLine_001 ); |