diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-29 15:13:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-29 15:13:45 +0200 |
commit | a52cf476e7cec9d0c70dd4ee93cbd328b66479ad (patch) | |
tree | 9e03f530d36c1c65f0db9d8698677e802137b3bb /basic | |
parent | c266ba458f444e5f4a4bafbf4073710c31897536 (diff) |
Clean up template-parameter-dependent C-style casts
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/codegen.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx index 8d4abe72b553..8b199c4faa4d 100644 --- a/basic/source/comp/codegen.cxx +++ b/basic/source/comp/codegen.cxx @@ -520,7 +520,7 @@ public: break; } - m_ConvertedBuf += (S)nOp1; + m_ConvertedBuf += static_cast<S>(nOp1); } virtual void processOpCode2( SbiOpcode eOp, T nOp1, T nOp2 ) { @@ -528,8 +528,8 @@ public: if ( eOp == _CASEIS ) if ( nOp1 ) nOp1 = static_cast<T>( convertBufferOffSet(m_pStart, nOp1) ); - m_ConvertedBuf += (S)nOp1; - m_ConvertedBuf += (S)nOp2; + m_ConvertedBuf += static_cast<S>(nOp1); + m_ConvertedBuf += static_cast<S>(nOp2); } virtual bool processParams(){ return true; } @@ -569,7 +569,7 @@ PCodeBuffConvertor<T,S>::convert() PCodeBufferWalker< T > aBuf( m_pStart, m_nSize ); BufferTransformer< T, S > aTrnsfrmer; aBuf.visitBuffer( aTrnsfrmer ); - m_pCnvtdBuf = (sal_uInt8*)aTrnsfrmer.buffer().GetBuffer(); + m_pCnvtdBuf = reinterpret_cast<sal_uInt8*>(aTrnsfrmer.buffer().GetBuffer()); m_nCnvtdSize = static_cast<S>( aTrnsfrmer.buffer().GetSize() ); } |