diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 11:31:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 11:31:42 +0100 |
commit | 473c20d86ea0cdd1307bfd5c89f89c3ba2c316a1 (patch) | |
tree | 17d98e754ad1fa63d77e59e249049ed8e5dff7c2 /xmlhelp/source/cxxhelp/provider/db.cxx | |
parent | e4fd2972e4e540d5ecc9eeba21c4464aae771c10 (diff) |
Some more loplugin:cstylecast: xmlhelp
Change-Id: I1aa45f669711a90cce52bafd839bd84eb711436a
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/db.cxx')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx index c8cbbe755d02..8a834d0cb7ae 100644 --- a/xmlhelp/source/cxxhelp/provider/db.cxx +++ b/xmlhelp/source/cxxhelp/provider/db.cxx @@ -85,7 +85,7 @@ void Hdf::createHashMap( bool bOptimizeForPerformance ) sal_Int32 nSize = m_xSFA->getSize( m_aFileURL ); sal_Int32 nRead = xIn->readBytes( aData, nSize ); - const char* pData = (const char*)aData.getConstArray(); + const char* pData = reinterpret_cast<const char*>(aData.getConstArray()); int iPos = 0; while( iPos < nRead ) { @@ -173,7 +173,7 @@ bool Hdf::getValueForKey( const OString& rKey, HDFData& rValue ) sal_Int32 nRead = xIn->readBytes( aData, nValueLen ); if( nRead == nValueLen ) { - const char* pData = (const sal_Char*)aData.getConstArray(); + const char* pData = reinterpret_cast<const sal_Char*>(aData.getConstArray()); rValue.copyToBuffer( pData, nValueLen ); bSuccess = true; } @@ -218,7 +218,7 @@ bool Hdf::startIteration( void ) if( m_nItRead == nSize ) { bSuccess = true; - m_pItData = (const char*)m_aItData.getConstArray(); + m_pItData = reinterpret_cast<const char*>(m_aItData.getConstArray()); m_iItPos = 0; } else |