[Libreoffice-commits] core.git: writerfilter/source xmlscript/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 16 12:44:38 UTC 2018
writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx | 2 +-
xmlscript/source/xml_helper/xml_byteseq.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6d7ffb35c4a18542f81011886cd1d8816b32f572
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Oct 16 10:45:51 2018 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Oct 16 14:44:00 2018 +0200
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 at collabora.co.uk>
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;
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;
More information about the Libreoffice-commits
mailing list