From 6d7ffb35c4a18542f81011886cd1d8816b32f572 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 16 Oct 2018 10:45:51 +0200 Subject: clang-tidy readability-simplify-subscript-expr error: accessing an element of the container does not require a call to 'data()'; did you mean to use 'operator[]'? Change-Id: I022745aa84b80124f342ce6c596d51b4d904f012 Reviewed-on: https://gerrit.libreoffice.org/61820 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xml_helper/xml_byteseq.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index e0d5ec272466..8dec2ce0e8db 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -63,7 +63,7 @@ sal_Int32 BSeqInputStream::readBytes( if (rData.getLength() != nBytesToRead) rData.realloc( nBytesToRead ); if (nBytesToRead != 0) { - memcpy(rData.getArray(), &_seq.data()[_nPos], nBytesToRead); + memcpy(rData.getArray(), &_seq[_nPos], nBytesToRead); } _nPos += nBytesToRead; return nBytesToRead; -- cgit