diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 10:45:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 14:44:00 +0200 |
commit | 6d7ffb35c4a18542f81011886cd1d8816b32f572 (patch) | |
tree | 8cb70a4f0daea45749ced7e31a29345d627ef5cf /xmlscript | |
parent | c081264c84ab7515653655aaddb5630d5c46d38c (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_byteseq.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |