summaryrefslogtreecommitdiff
path: root/fxbarcode/common/BC_CommonByteArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/common/BC_CommonByteArray.cpp')
-rw-r--r--fxbarcode/common/BC_CommonByteArray.cpp5
1 files changed, 2 insertions, 3 deletions
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<uint8_t>* 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;
}