From be06f3433ff7a92eba2f35f2f9764131e874450c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Jan 2015 15:12:50 +0100 Subject: [PATCH] Some more loplugin:cstylecast: xmlscript Change-Id: I6c13ff51c32e0fded35d8f9124981fee1cce80ad --- xmlscript/source/xml_helper/xml_byteseq.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index b9dd1caca3a4..9e88ff9a7242 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -122,8 +122,8 @@ void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData ) { sal_Int32 nPos = _seq->getLength(); _seq->realloc( nPos + rData.getLength() ); - memcpy( (char *)_seq->getArray() + nPos, - (char const *)rData.getConstArray(), + memcpy( _seq->getArray() + nPos, + rData.getConstArray(), rData.getLength() ); } void BSeqOutputStream::flush()