summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:25:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:25:21 +0200
commitb000faba864c0b60cbf86a48356fa81a707545a3 (patch)
tree6d0f017d7df87b6730bfa428e8df4d909d795891 /basic
parentcfd6a855bf1183e0a4459c859712998f5bdca27c (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I1788ad7d9f9dec892b31a0610d0f44ae1ccd2e64
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 66e66d735b35..9740bc13b465 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -1070,7 +1070,7 @@ static bool lcl_WriteSbxVariable( const SbxVariable& rVar, SvStream* pStrm,
// without any length information! without end-identifier!
// What does that mean for Unicode?! Choosing conversion to ByteString...
OString aByteStr(OUStringToOString(rStr, osl_getThreadTextEncoding()));
- pStrm->WriteCharPtr( (const char*)aByteStr.getStr() );
+ pStrm->WriteCharPtr( aByteStr.getStr() );
}
}
break;
@@ -1214,7 +1214,7 @@ static bool lcl_WriteReadSbxArray( SbxDimArray& rArr, SvStream* pStrm,
lcl_WriteReadSbxArray(rArr, pStrm, bBinary, nCurDim-1, pOtherDims, bWrite);
else
{
- SbxVariable* pVar = rArr.Get( (const short*)pOtherDims );
+ SbxVariable* pVar = rArr.Get( const_cast<const short*>(pOtherDims) );
bool bRet;
if( bWrite )
bRet = lcl_WriteSbxVariable(*pVar, pStrm, bBinary, 0, true );