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 /writerfilter | |
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 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx index 6bcab2d41d62..a9ce3995cec9 100644 --- a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx +++ b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx @@ -52,7 +52,7 @@ void OOXMLBinaryObjectReference::read() nSize += nBytesRead; mSequence.resize(nSize); - memcpy(&mSequence.data()[nOldSize], aSeq.getArray(), nBytesRead); + memcpy(&mSequence[nOldSize], aSeq.getArray(), nBytesRead); } mbRead = true; |