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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fxbarcode/common/BC_CommonByteArray.cpp b/fxbarcode/common/BC_CommonByteArray.cpp
index b670ba3b75..80ae07d1ad 100644
--- a/fxbarcode/common/BC_CommonByteArray.cpp
+++ b/fxbarcode/common/BC_CommonByteArray.cpp
@@ -78,7 +78,9 @@ void CBC_CommonByteArray::Reserve(int32_t capacity) {
m_size = capacity;
}
}
-void CBC_CommonByteArray::Set(uint8_t* source, int32_t offset, int32_t count) {
+void CBC_CommonByteArray::Set(const uint8_t* source,
+ int32_t offset,
+ int32_t count) {
FX_Free(m_bytes);
m_bytes = FX_Alloc(uint8_t, count);
m_size = count;