From b372dc6b20fca803aef86583551982fb9178011f Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 11 Jun 2018 17:33:52 +0000 Subject: Remove explicit calls to x->operator[] Because its a code smell of a sort. Change-Id: Id1c1b124f539e31a929701fb9486da9d396d3563 Reviewed-on: https://pdfium-review.googlesource.com/34695 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- fxbarcode/common/BC_CommonByteArray.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fxbarcode') diff --git a/fxbarcode/common/BC_CommonByteArray.cpp b/fxbarcode/common/BC_CommonByteArray.cpp index d66568c596..bb4fbf8af5 100644 --- a/fxbarcode/common/BC_CommonByteArray.cpp +++ b/fxbarcode/common/BC_CommonByteArray.cpp @@ -95,8 +95,7 @@ void CBC_CommonByteArray::Set(std::vector* source, m_bytes = FX_Alloc(uint8_t, count); m_size = count; int32_t i; - for (i = 0; i < count; i++) { - m_bytes[i] = source->operator[](i + offset); - } + for (i = 0; i < count; i++) + m_bytes[i] = (*source)[i + offset]; m_index = m_size; } -- cgit v1.2.3