summaryrefslogtreecommitdiff
path: root/fxbarcode/common
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/common')
-rw-r--r--fxbarcode/common/BC_CommonByteArray.cpp4
-rw-r--r--fxbarcode/common/BC_CommonByteArray.h2
2 files changed, 4 insertions, 2 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;
diff --git a/fxbarcode/common/BC_CommonByteArray.h b/fxbarcode/common/BC_CommonByteArray.h
index 84222ba25a..9270adcf42 100644
--- a/fxbarcode/common/BC_CommonByteArray.h
+++ b/fxbarcode/common/BC_CommonByteArray.h
@@ -26,7 +26,7 @@ class CBC_CommonByteArray {
void Set(int32_t index, int32_t value);
void AppendByte(int32_t value);
void Reserve(int32_t capacity);
- void Set(uint8_t* source, int32_t offset, int32_t count);
+ void Set(const uint8_t* source, int32_t offset, int32_t count);
void Set(std::vector<uint8_t>* source, int32_t offset, int32_t count);
private: